Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 02fc8dc4dcdc
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 972678ec748f
Choose a head ref
  • 13 commits
  • 13 files changed
  • 7 contributors

Commits on Feb 20, 2020

  1. nextcloud: 18.0.0 -> 18.0.1

    r-ryantm committed Feb 20, 2020
    Copy the full SHA
    91250fe View commit details
  2. runInLinuxVM: Ensure tools requiring /etc/passwd work

    This includes, but is not limited to:
    
     * whoami
     * nix >= 2.3.1
    
    See
    
     * NixOS/nixpkgs#71157
     * NixOS/nixops#1216
     * nix-community/nixops-libvirtd#5
    samueldr committed Feb 20, 2020
    Copy the full SHA
    687e219 View commit details

Commits on Feb 23, 2020

  1. Merge pull request #80622 from r-ryantm/auto-update/nextcloud

    nextcloud: 18.0.0 -> 18.0.1
    ryantm authored Feb 23, 2020
    Copy the full SHA
    d34aa25 View commit details
  2. lutris.chrootenv: add libbsd

    Jonathan Ringer committed Feb 23, 2020
    Copy the full SHA
    f128322 View commit details
  3. pythonPackages.bespon: init at 0.3.0

    Co-Authored-By: Jon <jonringer@users.noreply.github.com>
    Synthetica9 and Jon committed Feb 23, 2020
    Copy the full SHA
    35e5fc3 View commit details
  4. codebraid: init at 0.5.0-unstable-2019-12-11

    Co-Authored-By: Jon <jonringer@users.noreply.github.com>
    Synthetica9 and Jon committed Feb 23, 2020
    Copy the full SHA
    7062fa3 View commit details
  5. pythonPackages.pywinrm: missing dependency

    - Keberos is a dependency that you really want included in the pkg,
      this is also needed to run the test suite by default
    kamadorueda authored and Jon committed Feb 23, 2020
    Copy the full SHA
    36a1d10 View commit details
  6. pythonPackages.graphql-core: init at 2.3.1

    kamadorueda authored and Jon committed Feb 23, 2020
    Copy the full SHA
    58dac99 View commit details
  7. pythonPackages.graphql-server-core: init at 1.2.0

    kamadorueda authored and Jon committed Feb 23, 2020
    Copy the full SHA
    c6f75c7 View commit details
  8. pythonPackages.promise: init at 2.3

    kamadorueda authored and Jon committed Feb 23, 2020
    Copy the full SHA
    6382518 View commit details
  9. pythonPackages.fluidasserts: 20.1.33141 -> 20.2.30165

    - Release entirely the version pinning, the active development of
      the package makes it be compatible with the latest dependency
      versions
    - Added more tests, and missing packages
    kamadorueda authored and Jon committed Feb 23, 2020
    Copy the full SHA
    3c72558 View commit details
  10. pythonPackages.chalice: disable pip version bounds

    Jonathan Ringer committed Feb 23, 2020
    Copy the full SHA
    2c12bb3 View commit details
  11. Merge pull request #80680 from samueldr/fix/71157

    runInLinuxVM: Ensure tools requiring /etc/passwd work
    samueldr authored Feb 23, 2020
    Copy the full SHA
    972678e View commit details
2 changes: 1 addition & 1 deletion pkgs/applications/misc/lutris/chrootenv.nix
Original file line number Diff line number Diff line change
@@ -97,7 +97,7 @@ in buildFHSUserEnv {
libcap libtiff libva libgphoto2 libxslt libtxc_dxtn libsndfile giflib zlib glib
alsaLib zziplib bash dbus keyutils zip cabextract freetype unzip coreutils
readline gcc SDL SDL2 curl graphite2 gtk2 gtk3 udev ncurses wayland libglvnd
vulkan-loader xdg_utils sqlite gnutls
vulkan-loader xdg_utils sqlite gnutls libbsd

# PCSX2 // TODO: "libgobject-2.0.so.0: wrong ELF class: ELFCLASS64"

4 changes: 4 additions & 0 deletions pkgs/build-support/vm/default.nix
Original file line number Diff line number Diff line change
@@ -126,6 +126,10 @@ rec {
mkdir -p /fs/etc
ln -sf /proc/mounts /fs/etc/mtab
echo "127.0.0.1 localhost" > /fs/etc/hosts
# Ensures tools requiring /etc/passwd will work (e.g. nix)
if [ ! -e /fs/etc/passwd ]; then
echo "root:x:0:0:System administrator:/root:/bin/sh" > /fs/etc/passwd
fi
echo "starting stage 2 ($command)"
exec switch_root /fs $command $out
27 changes: 27 additions & 0 deletions pkgs/development/python-modules/bespon/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{ stdenv
, buildPythonPackage
, fetchPypi
}:

buildPythonPackage rec {
version = "0.3.0";
pname = "BespON";

src = fetchPypi {
inherit pname version;
sha256 = "0698vx1kh8c84f5qfhl4grdlyn1lljvdih8yczdz0pql8wkn8i7v";
};

propagatedBuildInputs = [ ];
# upstream doesn't contain tests
doCheck = false;

pythonImportsCheck = [ "bespon" ];
meta = with stdenv.lib; {
description = "Encodes and decodes data in the BespON format.";
homepage = "https://github.com/gpoore/bespon_py";
license = licenses.lgpl3;
maintainers = with maintainers; [ synthetica ];
};

}
3 changes: 2 additions & 1 deletion pkgs/development/python-modules/chalice/default.nix
Original file line number Diff line number Diff line change
@@ -44,8 +44,9 @@ buildPythonPackage rec {
doCheck = false;

postPatch = ''
sed -i setup.py -e "/pip>=/c\'pip',"
substituteInPlace setup.py \
--replace 'pip>=9,<=18.1' 'pip' \
--replace 'pip>=9,<=19.4' 'pip' \
--replace 'typing==3.6.4' 'typing' \
--replace 'attrs==17.4.0' 'attrs' \
--replace 'click>=6.6,<7.0' 'click'
82 changes: 58 additions & 24 deletions pkgs/development/python-modules/fluidasserts/default.nix
Original file line number Diff line number Diff line change
@@ -7,17 +7,16 @@
, aiohttp
, androguard
, azure-identity
, azure-keyvault-keys
, azure-keyvault-secrets
, azure-keyvault
, azure-mgmt-compute
, azure-mgmt-keyvault
, azure-mgmt-network
, azure-mgmt-resource
, azure-mgmt-security
, azure-mgmt-storage
, azure-mgmt-sql
, azure-mgmt-web
, azure-storage-file
, azure-storage-file-share
, azure-storage
, bandit
, bcrypt
, beautifulsoup4
@@ -45,47 +44,45 @@
, pyhcl
, pyjks
, pynacl
, pyodbc
, pyopenssl
, pypdf2
, pysmb
, pytesseract
, python_magic
, pytz
, pywinrm
, requirements-detector
, selenium
, tlslite-ng
, viewstate

# pythonPackages to test the derivation
, pytest
, flask
, flask-httpauth
, docker
}:

buildPythonPackage rec {
pname = "fluidasserts";
version = "20.1.33141";
version = "20.2.30165";
disabled = !isPy37;

src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "01l6yb3r19q8b4kwqkrzn7mpfsr65zsgzax2fbs43hb6pq6vavnx";
sha256 = "0wcplzfx89d3c6hvdgag860sl3infqmymy6ly6y6ah77pkc98x15";
};

patchPhase = ''
# Version mismatches between current FluidAsserts and Nixpkgs
substituteInPlace ./setup.py \
--replace 'tlslite-ng==0.8.0-alpha36' 'tlslite-ng==0.7.5' \
--replace 'boto3==1.11.7' 'boto3==1.10.1' \
--replace 'typed-ast==1.4.1' 'typed-ast==1.4.0' \
--replace 'pillow==7.0.0' 'pillow==6.2.1' \
# Release packages from their hard pinned versions
sed -i -E "s/(.*)==.*/\1/g" requirements.txt
# Functionality that will be not present for the momment
# but that we'll work to add in the future
# Just a minimal portion of fluidasserts use this
substituteInPlace ./setup.py \
--replace "'pymssql==2.1.4'," "" \
--replace "'pytesseract==0.3.1'," "" \
--replace "'pywinrm==0.4.1'," "" \
--replace "'mitmproxy==5.0.1'," "" \
substituteInPlace ./requirements.txt \
--replace "mitmproxy" "" \
'';

@@ -94,17 +91,16 @@ buildPythonPackage rec {
aiohttp
androguard
azure-identity
azure-keyvault-keys
azure-keyvault-secrets
azure-keyvault
azure-mgmt-compute
azure-mgmt-keyvault
azure-mgmt-network
azure-mgmt-resource
azure-mgmt-security
azure-mgmt-storage
azure-mgmt-sql
azure-mgmt-web
azure-storage-file
azure-storage-file-share
azure-storage
bandit
bcrypt
beautifulsoup4
@@ -132,36 +128,74 @@ buildPythonPackage rec {
pyhcl
pyjks
pynacl
pyodbc
pyopenssl
pypdf2
pysmb
pytesseract
python_magic
pytz
pywinrm
requirements-detector
selenium
tlslite-ng
viewstate
];

configurePhase = ''
mkdir -p build/config
touch build/config/README.rst
'';

checkInputs = [
docker
flask
flask-httpauth
pytest
];

checkPhase = ''
# This tests require BWAPP Docker Container
sed -ie 's/test_a[0-9]//g' ./test/test_proto_http_open.py
sed -ie 's/test_a[0-9]//g' ./test/test_proto_http_close.py
# This tests require network connectivity
sed -ie 's/test_is_date_unsyncd//g' ./test/test_proto_http_open.py
sed -ie 's/test_is_date_unsyncd//g' ./test/test_proto_http_close.py
# Remove impurities
substituteInPlace ./test/conftest.py \
--replace "import wait" "" \
--replace "if not os.path.exists(name):" "if os.path.exists(name):" \
--replace "from test.mock import graphql_server" "" \
--replace "(graphql_server.start, 'MockGraphQLServer', ['proto_graphql'])," "" \
pytest --asserts-module 'iot' \
test/test_iot_phone.py
pytest --asserts-module 'ot' \
test/test_ot_powerlogic.py
pytest --asserts-module 'proto_http' \
test/test_proto_{http_close,http_open}.py
pytest --asserts-module 'proto_rest' \
test/test_proto_rest.py
# This file launches mock docker containers and servers
# let's remove it to create a custom test environment
rm test/conftest.py
pytest \
test/test_cloud_aws_terraform_{ebs,ec2}.py \
test/test_cloud_aws_terraform_{cloudfront,dynamodb,ebs,ec2,elb}.py \
test/test_cloud_aws_terraform_{fsx,iam,kms,rds,s3}.py \
test/test_cloud_aws_cloudformation_{cloudfront,dynamodb,ec2,elb,elb2}.py \
test/test_cloud_aws_cloudformation_{fsx,iam,kms,rds,s3,secretsmanager}.py \
test/test_format_{apk,jks,jwt,pdf,pkcs12,string}.py \
test/test_helper_{asynchronous,crypto}.py \
test/test_lang_{javascript,java}.py \
test/test_lang_{core,csharp,docker,dotnetconfig,html,php,python,rpgle}.py \
test/test_utils_generic.py
'';

meta = with lib; {
54 changes: 54 additions & 0 deletions pkgs/development/python-modules/graphql-core/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{ buildPythonPackage
, fetchFromGitHub
, lib

, coveralls
, promise
, pytest
, pytest-benchmark
, pytest-mock
, rx
, six
}:

buildPythonPackage rec {
pname = "graphql-core";
version = "2.3.1";

src = fetchFromGitHub {
owner = "graphql-python";
repo = pname;
rev = "v${version}";
sha256 = "029jnwy6zbj4x7f3ffpn1gyx0w9ala9cj2g115g6aa7im3xd2jma";
};

propagatedBuildInputs = [
promise
rx
six
];

checkInputs = [
coveralls
pytest
pytest-benchmark
pytest-mock
];

checkPhase = "pytest";

configurePhase = ''
substituteInPlace setup.py \
--replace 'pytest-mock==1.2' 'pytest-mock==1.13.0' \
--replace 'pytest-benchmark==3.0.0' 'pytest-benchmark==3.2.2'
'';

meta = with lib; {
description = "Port of graphql-js to Python";
homepage = "https://github.com/graphql-python/graphql-core";
license = licenses.mit;
maintainers = with maintainers; [
kamadorueda
];
};
}
40 changes: 40 additions & 0 deletions pkgs/development/python-modules/graphql-server-core/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{ buildPythonPackage
, fetchFromGitHub
, lib

, black
, graphql-core
, promise
}:

buildPythonPackage rec {
pname = "graphql-server-core";
version = "1.2.0";

src = fetchFromGitHub {
owner = "graphql-python";
repo = pname;
rev = "v${version}";
sha256 = "123q3xziv0s22h10v3f5slirf4b6nxj0hnmarwx9vws6x21bgrgh";
};

propagatedBuildInputs = [
graphql-core
promise
];

checkPhase = "black --check graphql_server tests";

checkInputs = [
black
];

meta = with lib; {
description = "Core package for using GraphQL in a custom server easily";
homepage = "https://github.com/graphql-python/graphql-server-core";
license = licenses.mit;
maintainers = with maintainers; [
kamadorueda
];
};
}
49 changes: 49 additions & 0 deletions pkgs/development/python-modules/promise/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{ buildPythonPackage
, fetchPypi
, lib

, coveralls
, gevent
, mock
, pytest-asyncio
, pytest-benchmark
, pytestcov
, six
}:

buildPythonPackage rec {
pname = "promise";
version = "2.3";

src = fetchPypi {
inherit pname version;
sha256 = "1l4kknj97dj5pxfpsz3ln78x9a843561c740b1m4pfi3qlvq7lfz";
};

patchPhase = ''
substituteInPlace setup.py \
--replace '"futures",' ""
'';

propagatedBuildInputs = [
gevent
six
];

checkInputs = [
coveralls
mock
pytest-asyncio
pytest-benchmark
pytestcov
];

meta = with lib; {
description = "Ultra-performant Promise implementation in Python";
homepage = "https://github.com/syrusakbary/promise";
license = licenses.mit;
maintainers = with maintainers; [
kamadorueda
];
};
}
Loading