diff options
author | Vladimír Čunát <v@cunat.cz> | 2022-04-28 18:04:16 +0200 |
---|---|---|
committer | Vladimír Čunát <v@cunat.cz> | 2022-04-28 18:04:16 +0200 |
commit | 8caa1418f67e7b49496889e723784e09b028cd3a (patch) | |
tree | c85b0152cbd871f9f7a076e43bda4d44806e65d2 /pkgs/development/python-modules | |
parent | 51554cbbdbe6086da3b31fb803e9d725647052c3 (diff) | |
parent | 0cd6f99f9506e31044a320a8223b59a81323d940 (diff) |
Merge branch 'master' into staging-next-2022-04-23
Diffstat (limited to 'pkgs/development/python-modules')
38 files changed, 498 insertions, 158 deletions
diff --git a/pkgs/development/python-modules/aiolifx/default.nix b/pkgs/development/python-modules/aiolifx/default.nix index 1ce640179a134..68a630a96ee76 100644 --- a/pkgs/development/python-modules/aiolifx/default.nix +++ b/pkgs/development/python-modules/aiolifx/default.nix @@ -8,14 +8,14 @@ buildPythonPackage rec { pname = "aiolifx"; - version = "0.8.0"; + version = "0.8.1"; format = "setuptools"; disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - hash = "sha256-7XwtTALfEFAI2Rl3JcVcncIZBTFNuXyyclpJj5jHyEU="; + hash = "sha256-w6d2qpU8jPrE2Dtuq4825qOCU1SoIpkEjOEX+BYxhuU="; }; propagatedBuildInputs = [ diff --git a/pkgs/development/python-modules/aioqsw/default.nix b/pkgs/development/python-modules/aioqsw/default.nix index 91dac94f20d2d..ae311fe4bc7b5 100644 --- a/pkgs/development/python-modules/aioqsw/default.nix +++ b/pkgs/development/python-modules/aioqsw/default.nix @@ -8,7 +8,7 @@ buildPythonPackage rec { pname = "aioqsw"; - version = "0.0.5"; + version = "0.0.7"; format = "setuptools"; disabled = pythonOlder "3.8"; @@ -16,8 +16,8 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "Noltari"; repo = pname; - rev = version; - hash = "sha256-2MuJrWrjcRkdeVkKfv/nUVfHyBtKKsq1sC5ISSEtyEE="; + rev = "refs/tags/${version}"; + hash = "sha256-EEgEpil6/pa3gihiLZ5RrtTxP63H24VmMc8Nf1Vsrw8="; }; propagatedBuildInputs = [ diff --git a/pkgs/development/python-modules/aioslimproto/default.nix b/pkgs/development/python-modules/aioslimproto/default.nix new file mode 100644 index 0000000000000..beb1652b14f02 --- /dev/null +++ b/pkgs/development/python-modules/aioslimproto/default.nix @@ -0,0 +1,34 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pythonOlder +}: + +buildPythonPackage rec { + pname = "aioslimproto"; + version = "1.0.1"; + format = "setuptools"; + + disabled = pythonOlder "3.9"; + + src = fetchFromGitHub { + owner = "home-assistant-libs"; + repo = pname; + rev = version; + hash = "sha256-kR2PG2eivBfqu67hXr8/RRvo5EzI75e8NmG15NPGo1E="; + }; + + # Module has no tests + doCheck = false; + + pythonImportsCheck = [ + "aioslimproto" + ]; + + meta = with lib; { + description = "Module to control Squeezebox players"; + homepage = "https://github.com/home-assistant-libs/aioslimproto"; + license = with licenses; [ asl20 ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/development/python-modules/av/default.nix b/pkgs/development/python-modules/av/default.nix index 3ebc44d1c4d63..a6aa50b2de0c7 100644 --- a/pkgs/development/python-modules/av/default.nix +++ b/pkgs/development/python-modules/av/default.nix @@ -18,15 +18,16 @@ buildPythonPackage rec { pname = "av"; - version = "9.1.1"; + version = "9.2.0"; format = "pyproject"; + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "mikeboers"; repo = "PyAV"; rev = "v${version}"; - hash = "sha256-/6C5GE9zANPy0xaptu/+pIupOLDra/R7TJ41YLGszUs="; + hash = "sha256-I7j+EzpvgKCNY8TbcaHsaWtetyvmno6YYhQTer2+Ds0="; }; nativeBuildInputs = [ @@ -100,6 +101,11 @@ buildPythonPackage rec { "--deselect=tests/test_videoframe.py::TestVideoFrameImage::test_roundtrip" ]; + disabledTests = [ + # urlopen fails during DNS resolution + "test_writing_to_custom_io" + ]; + disabledTestPaths = [ # urlopen fails during DNS resolution "tests/test_doctests.py" diff --git a/pkgs/development/python-modules/aws-adfs/default.nix b/pkgs/development/python-modules/aws-adfs/default.nix index 845032ddcb926..9f4a6dcb45a04 100644 --- a/pkgs/development/python-modules/aws-adfs/default.nix +++ b/pkgs/development/python-modules/aws-adfs/default.nix @@ -5,7 +5,6 @@ , click , configparser , fetchFromGitHub -, fetchpatch , fido2 , lxml , poetry-core @@ -19,7 +18,7 @@ buildPythonPackage rec { pname = "aws-adfs"; - version = "2.0.1"; + version = "2.0.2"; format = "pyproject"; disabled = pythonOlder "3.6"; @@ -28,7 +27,7 @@ buildPythonPackage rec { owner = "venth"; repo = pname; rev = version; - hash = "sha256-0BURXbEOZvb8kszuajLtR+V7HjJycCBAQrm3WqpVB1w="; + hash = "sha256-T3AmPCOSeu7gvl57aHjnviy5iQAKlWy85fUOVecFRFc="; }; nativeBuildInputs = [ @@ -47,15 +46,6 @@ buildPythonPackage rec { requests-kerberos ]; - patches = [ - # Switch to poetry-core, https://github.com/venth/aws-adfs/pull/230 - (fetchpatch { - name = "switch-to-poetry-core.patch"; - url = "https://github.com/venth/aws-adfs/commit/da095ccf64629d36a6045ffec2684038378ee690.patch"; - sha256 = "sha256-xg4c7iIonkUmNN74q/UeGSuYP3to7q4cLW6+TMW9nh4="; - }) - ]; - postPatch = '' substituteInPlace pyproject.toml \ --replace 'boto3 = "^1.20.50"' 'boto3 = "*"' \ diff --git a/pkgs/development/python-modules/codepy/default.nix b/pkgs/development/python-modules/codepy/default.nix new file mode 100644 index 0000000000000..34e872249824f --- /dev/null +++ b/pkgs/development/python-modules/codepy/default.nix @@ -0,0 +1,35 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytools +, appdirs +, six +, cgen +}: + +buildPythonPackage rec { + pname = "codepy"; + version = "2019.1"; + + src = fetchFromGitHub { + owner = "inducer"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-viMfB/nDrvDA/IGRZEX+yXylxbbmqbh/fgdYXBzK0zM="; + }; + + buildInputs = [ pytools six cgen ]; + propagatedBuildInputs = [ appdirs ]; + + pythonImportsCheck = [ "codepy" ]; + + # Tests are broken + doCheck = false; + + meta = with lib; { + homepage = "https://github.com/inducer/codepy"; + description = "Generate and execute native code at run time, from Python"; + license = licenses.mit; + maintainers = with maintainers; [ atila ]; + }; +} diff --git a/pkgs/development/python-modules/connexion/default.nix b/pkgs/development/python-modules/connexion/default.nix index 0eb3eec5550e1..2e36a1c455470 100644 --- a/pkgs/development/python-modules/connexion/default.nix +++ b/pkgs/development/python-modules/connexion/default.nix @@ -22,7 +22,7 @@ buildPythonPackage rec { pname = "connexion"; - version = "2.13.0"; + version = "2.13.1"; format = "setuptools"; disabled = pythonOlder "3.6"; @@ -30,8 +30,8 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "spec-first"; repo = pname; - rev = version; - hash = "sha256-QOxvs2z8AAxQ2oSM/PQ6QTD9G4JomviauLSDjay8HyQ="; + rev = "refs/tags/${version}"; + hash = "sha256-nWhrb2oyBue/Q/dAdSgk3K/JXdgLg1xAEbOtCTRYs/M="; }; propagatedBuildInputs = [ diff --git a/pkgs/development/python-modules/contexttimer/default.nix b/pkgs/development/python-modules/contexttimer/default.nix new file mode 100644 index 0000000000000..02aeec5bfcc3c --- /dev/null +++ b/pkgs/development/python-modules/contexttimer/default.nix @@ -0,0 +1,42 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, mock +, fetchpatch +, python +}: + +buildPythonPackage rec { + pname = "contexttimer"; + version = "unstable-2019-03-30"; + + src = fetchFromGitHub { + owner = "brouberol"; + repo = "contexttimer"; + rev = "a866f420ed4c10f29abf252c58b11f9db6706100"; + sha256 = "sha256-Fc1vK1KSZWgBPtBf5dVydF6dLHEGAOslWMV0FLRdj8w="; + }; + + patches = [ + # https://github.com/brouberol/contexttimer/pull/16 + (fetchpatch { + url = "https://github.com/brouberol/contexttimer/commit/dd65871f3f25a523a47a74f2f5306c57048592b0.patch"; + hash = "sha256-vNBuFXvuvb6hWPzg4W4iyKbd4N+vofhxsKydEkc25E4="; + }) + ]; + + pythonImportCheck = [ "contexttimer" ]; + + checkInputs = [ mock ]; + + checkPhase = '' + ${python.interpreter} -m unittest tests/test_timer.py + ''; + + meta = with lib; { + homepage = "https://github.com/brouberol/contexttimer"; + description = "A timer as a context manager"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ atila ]; + }; +} diff --git a/pkgs/development/python-modules/dask-yarn/default.nix b/pkgs/development/python-modules/dask-yarn/default.nix new file mode 100644 index 0000000000000..2ef7c232f4c8f --- /dev/null +++ b/pkgs/development/python-modules/dask-yarn/default.nix @@ -0,0 +1,47 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytestCheckHook +, pythonOlder +, distributed +, dask +, grpcio +, skein +}: + +buildPythonPackage rec { + pname = "dask-yarn"; + version = "0.9"; + + src = fetchFromGitHub { + owner = "dask"; + repo = pname; + rev = version; + hash = "sha256-/BTsxQSiVQrihrCa9DE7pueyg3aPAdjd/Dt4dpUwdtM="; + }; + + propagatedBuildInputs = [ + distributed + dask + grpcio + skein + ]; + + checkInputs = [ pytestCheckHook ]; + preCheck = '' + export HOME=$TMPDIR + ''; + pythonImportsCheck = [ "dask_yarn" ]; + + meta = with lib; { + description = "Deploy dask on YARN clusters"; + longDescription = ''Dask-Yarn deploys Dask on YARN clusters, + such as are found in traditional Hadoop installations. + Dask-Yarn provides an easy interface to quickly start, + stop, and scale Dask clusters natively from Python. + ''; + homepage = "https://yarn.dask.org/"; + license = licenses.bsd3; + maintainers = with maintainers; [ illustris ]; + }; +} diff --git a/pkgs/development/python-modules/devito/default.nix b/pkgs/development/python-modules/devito/default.nix new file mode 100644 index 0000000000000..0953cbf9ec759 --- /dev/null +++ b/pkgs/development/python-modules/devito/default.nix @@ -0,0 +1,100 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, anytree +, nbval +, sympy +, scipy +, cached-property +, psutil +, py-cpuinfo +, cgen +, click +, multidict +, distributed +, pyrevolve +, codepy +, pytestCheckHook +, matplotlib +, pytest-xdist +}: + +buildPythonPackage rec { + pname = "devito"; + version = "unstable-2022-04-22"; + + src = fetchFromGitHub { + owner = "devitocodes"; + repo = "devito"; + rev = "7cb52eded4038c1a0ee92cfd04d3412c48f2fb7c"; + sha256 = "sha256-QdQRCGmXaubPPnmyJo2ha0mW5P1akRZhXZVW2TNM5yY="; + }; + + postPatch = '' + # Removing unecessary dependencies + sed -e "s/flake8.*//g" \ + -e "s/codecov.*//g" \ + -e "s/pytest.*//g" \ + -e "s/pytest-runner.*//g" \ + -e "s/pytest-cov.*//g" \ + -i requirements.txt + + # Relaxing dependencies requirements + sed -e "s/>.*//g" \ + -e "s/<.*//g" \ + -i requirements.txt + ''; + + checkInputs = [ pytestCheckHook pytest-xdist matplotlib ]; + + # I've had to disable the following tests since they fail while using nix-build, but they do pass + # outside the build. They mostly related to the usage of MPI in a sandboxed environment. + disabledTests = [ + "test_assign_parallel" + "test_gs_parallel" + "test_if_parallel" + "test_if_halo_mpi" + "test_cache_blocking_structure_distributed" + "test_mpi" + "test_codegen_quality0" + "test_new_distributor" + "test_subdomainset_mpi" + "test_init_omp_env_w_mpi" + "test_mpi_nocomms" + ]; + + disabledTestPaths = [ + "tests/test_pickle.py" + "tests/test_benchmark.py" + "tests/test_mpi.py" + "tests/test_autotuner.py" + "tests/test_data.py" + "tests/test_dse.py" + "tests/test_gradient.py" + ]; + + propagatedBuildInputs = [ + anytree + cached-property + cgen + click + codepy + distributed + nbval + multidict + psutil + py-cpuinfo + pyrevolve + scipy + sympy + ]; + + pythonImportsCheck = [ "devito" ]; + + meta = with lib; { + homepage = "https://www.devitoproject.org/"; + description = "Code generation framework for automated finite difference computation"; + license = licenses.mit; + maintainers = with maintainers; [ atila ]; + }; +} diff --git a/pkgs/development/python-modules/dockerfile-parse/default.nix b/pkgs/development/python-modules/dockerfile-parse/default.nix index e9a31b461fd6e..55ff20803b26c 100644 --- a/pkgs/development/python-modules/dockerfile-parse/default.nix +++ b/pkgs/development/python-modules/dockerfile-parse/default.nix @@ -1,24 +1,42 @@ -{ lib, buildPythonPackage, fetchPypi, six, pytest-cov, pytest }: +{ lib +, buildPythonPackage +, fetchPypi +, six +, pytestCheckHook +, pythonOlder +}: buildPythonPackage rec { - version = "1.2.0"; pname = "dockerfile-parse"; + version = "1.2.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "07e65eec313978e877da819855870b3ae47f3fac94a40a965b9ede10484dacc5"; + hash = "sha256-B+Ze7DE5eOh32oGYVYcLOuR/P6yUpAqWW57eEEhNrMU="; }; - postPatch = '' - echo " " > tests/requirements.txt \ - ''; + propagatedBuildInputs = [ + six + ]; + + checkInputs = [ + pytestCheckHook + ]; - propagatedBuildInputs = [ six ]; + pythonImportsCheck = [ + "dockerfile_parse" + ]; - checkInputs = [ pytest-cov pytest ]; + disabledTests = [ + # python-dockerfile-parse.spec is not present + "test_all_versions_match" + ]; meta = with lib; { - description = "Python library for parsing Dockerfile files"; + description = "Library for parsing Dockerfile files"; homepage = "https://github.com/DBuildService/dockerfile-parse"; license = licenses.bsd3; maintainers = with maintainers; [ leenaars ]; diff --git a/pkgs/development/python-modules/docstring-parser/default.nix b/pkgs/development/python-modules/docstring-parser/default.nix index 5408b11c7d8ac..53a59f10ffac5 100644 --- a/pkgs/development/python-modules/docstring-parser/default.nix +++ b/pkgs/development/python-modules/docstring-parser/default.nix @@ -1,25 +1,39 @@ { lib , buildPythonPackage , fetchFromGitHub -, setuptools -, setuptools-scm -, wheel -, pytest -}: buildPythonPackage rec { +, poetry-core +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { pname = "docstring-parser"; - version = "0.12"; + version = "0.14.1"; + format = "pyproject"; + + disabled = pythonOlder "3.7"; + src = fetchFromGitHub { owner = "rr-"; repo = "docstring_parser"; rev = "${version}"; - sha256 = "sha256-hQuPJQrGvDs4dJrMLSR4sSnqy45xrF2ufinBG+azuCg="; + hash = "sha256-NIijq+QR0panVCGDEQrTlkAvHfIexwS0PxFikglxd74="; }; - nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ pytest setuptools wheel ]; - SETUPTOOLS_SCM_PRETEND_VERSION = version; + + nativeBuildInputs = [ + poetry-core + ]; + + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "docstring_parser" + ]; meta = with lib; { - description = "Parse Python docstrings in various flavors. "; + description = "Parse Python docstrings in various flavors"; homepage = "https://github.com/rr-/docstring_parser"; license = licenses.mit; maintainers = with maintainers; [ SomeoneSerge ]; diff --git a/pkgs/development/python-modules/durus/default.nix b/pkgs/development/python-modules/durus/default.nix new file mode 100644 index 0000000000000..456ae010d63c1 --- /dev/null +++ b/pkgs/development/python-modules/durus/default.nix @@ -0,0 +1,28 @@ +{ stdenv, lib, buildPythonPackage, fetchPypi }: + +buildPythonPackage rec { + pname = "Durus"; + version = "4.2"; + + src = fetchPypi { + inherit version pname; + sha256 = "sha256:1gzxg43zawwgqjrfixvcrilwpikb1ix9b7710rsl5ffk7q50yi3c"; + }; + + # Checks disabled due to missing python unittest framework 'sancho' in nixpkgs + doCheck = false; + + pythonImportsCheck = [ + "durus.connection" + "durus.file_storage" + "durus.client_storage" + "durus.sqlite_storage" + ]; + + meta = with lib; { + description = "Object persistence layer"; + homepage = "https://github.com/nascheme/durus"; + license = licenses.mit; + maintainers = with maintainers; [ grindhold ]; + }; +} diff --git a/pkgs/development/python-modules/faraday-agent-parameters-types/default.nix b/pkgs/development/python-modules/faraday-agent-parameters-types/default.nix index 544cb93bca442..8649e06982717 100644 --- a/pkgs/development/python-modules/faraday-agent-parameters-types/default.nix +++ b/pkgs/development/python-modules/faraday-agent-parameters-types/default.nix @@ -2,6 +2,7 @@ , buildPythonPackage , fetchPypi , marshmallow +, packaging , pytestCheckHook }: @@ -17,6 +18,7 @@ buildPythonPackage rec { propagatedBuildInputs = [ marshmallow + packaging ]; checkInputs = [ @@ -28,7 +30,10 @@ buildPythonPackage rec { --replace '"pytest-runner",' "" ''; - pythonImportsCheck = [ "faraday_agent_parameters_types" ]; + pythonImportsCheck = [ + "faraday_agent_parameters_types" + "faraday_agent_parameters_types.utils" + ]; meta = with lib; { description = "Collection of Faraday agent parameters types"; diff --git a/pkgs/development/python-modules/hatasmota/default.nix b/pkgs/development/python-modules/hatasmota/default.nix index b710e5fb2e263..db524438d63a9 100644 --- a/pkgs/development/python-modules/hatasmota/default.nix +++ b/pkgs/development/python-modules/hatasmota/default.nix @@ -8,7 +8,7 @@ buildPythonPackage rec { pname = "hatasmota"; - version = "0.4.0"; + version = "0.4.1"; format = "setuptools"; disabled = pythonOlder "3.6"; @@ -16,8 +16,8 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "emontnemery"; repo = pname; - rev = version; - sha256 = "sha256-r9EBuaKxc7Vcdfk8zoDpIi2i6yIGc7soSWx+RjG+SZo="; + rev = "refs/tags/${version}"; + sha256 = "sha256-So3wnz6HBGlgBgBJiU4m+fFx7f8Y+6c15OCD8GFGQaE="; }; propagatedBuildInputs = [ diff --git a/pkgs/development/python-modules/identify/default.nix b/pkgs/development/python-modules/identify/default.nix index 18a12fe9e1981..5fb9c1a0e9b55 100644 --- a/pkgs/development/python-modules/identify/default.nix +++ b/pkgs/development/python-modules/identify/default.nix @@ -9,7 +9,7 @@ buildPythonPackage rec { pname = "identify"; - version = "2.4.12"; + version = "2.5.0"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -18,7 +18,7 @@ buildPythonPackage rec { owner = "pre-commit"; repo = pname; rev = "v${version}"; - sha256 = "sha256-kXhUlt+lcqK3ohOA8eziFcrm4U/FAYWpie4rH5xRejI="; + sha256 = "sha256-gbR2z4mo5EFHS2N3pg5mwFQAfL9ysqYaC+tSSYBK7YI="; }; checkInputs = [ diff --git a/pkgs/development/python-modules/jc/default.nix b/pkgs/development/python-modules/jc/default.nix index 88858b537b280..d7f8e6c5a1bad 100644 --- a/pkgs/development/python-modules/jc/default.nix +++ b/pkgs/development/python-modules/jc/default.nix @@ -10,14 +10,14 @@ buildPythonPackage rec { pname = "jc"; - version = "1.18.7"; + version = "1.18.8"; disabled = pythonOlder "3.6"; src = fetchFromGitHub { owner = "kellyjonbrazil"; repo = pname; rev = "v${version}"; - sha256 = "sha256-1fnkeyfvFHy9/COpFtPdvj8ptUIVxfoBrOFw9Ikf47w="; + sha256 = "sha256-tZrvWMt0qdOFTNeL99mZGFl8bVDGCqj25zVl7QvXQLw="; }; propagatedBuildInputs = [ ruamel-yaml xmltodict pygments ]; diff --git a/pkgs/development/python-modules/marshmallow-dataclass/default.nix b/pkgs/development/python-modules/marshmallow-dataclass/default.nix index 5d6f540f9f5f9..32a490822d2ac 100644 --- a/pkgs/development/python-modules/marshmallow-dataclass/default.nix +++ b/pkgs/development/python-modules/marshmallow-dataclass/default.nix @@ -12,7 +12,7 @@ buildPythonPackage rec { pname = "marshmallow-dataclass"; - version = "8.5.6"; + version = "8.5.8"; format = "setuptools"; disabled = pythonOlder "3.6"; @@ -21,7 +21,7 @@ buildPythonPackage rec { owner = "lovasoa"; repo = "marshmallow_dataclass"; rev = "v${version}"; - sha256 = "sha256-wUjgIjpN+c26yhlz3XzMOcKwTt/MDCiCLh7yGdy42jk="; + sha256 = "sha256-3kd/V3U3+/HfUmzwkp3/ChwSjknQ8rIYnTUsRH3WoP4="; }; propagatedBuildInputs = [ diff --git a/pkgs/development/python-modules/meshtastic/default.nix b/pkgs/development/python-modules/meshtastic/default.nix index 4c92063de660f..596b622f67934 100644 --- a/pkgs/development/python-modules/meshtastic/default.nix +++ b/pkgs/development/python-modules/meshtastic/default.nix @@ -18,7 +18,7 @@ buildPythonPackage rec { pname = "meshtastic"; - version = "1.2.93"; + version = "1.2.95"; format = "setuptools"; disabled = pythonOlder "3.6"; @@ -27,7 +27,7 @@ buildPythonPackage rec { owner = "meshtastic"; repo = "Meshtastic-python"; rev = version; - sha256 = "sha256-4jh5AYjr1qnr3nOeJSLwtAzdPlmpW1BBrEXfB86NrL0="; + sha256 = "sha256-CMw7PbM82AjbhrCYnRuxF9WFJqr6gvCEkTyG2vKM7FM="; }; propagatedBuildInputs = [ diff --git a/pkgs/development/python-modules/peaqevcore/default.nix b/pkgs/development/python-modules/peaqevcore/default.nix index 529ca1667cd03..d8cec1cc3e212 100644 --- a/pkgs/development/python-modules/peaqevcore/default.nix +++ b/pkgs/development/python-modules/peaqevcore/default.nix @@ -6,20 +6,18 @@ buildPythonPackage rec { pname = "peaqevcore"; - version = "0.0.16"; + version = "0.0.19"; format = "setuptools"; disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - hash = "sha256-VYJzypRiVOF4FrvglAp2NWMUNxZx2Fq1Pw7lx0xbVFw="; + hash = "sha256-eEMzhrVKZJjUYwwdZ8M+xi0pbxseOS4ddW9il4XYwJs="; }; postPatch = '' substituteInPlace setup.py \ - --replace "datetime" "" \ - --replace "statistics" "" \ --replace "pytest" "" ''; diff --git a/pkgs/development/python-modules/pipdate/default.nix b/pkgs/development/python-modules/pipdate/default.nix index 627e2b0a6faea..4d241e87e1c0f 100644 --- a/pkgs/development/python-modules/pipdate/default.nix +++ b/pkgs/development/python-modules/pipdate/default.nix @@ -1,9 +1,10 @@ { lib +, appdirs , buildPythonPackage , fetchPypi -, pythonOlder -, appdirs , importlib-metadata +, packaging +, pythonOlder , requests , rich , setuptools @@ -12,19 +13,22 @@ buildPythonPackage rec { pname = "pipdate"; - version = "0.5.5"; + version = "0.5.6"; format = "pyproject"; disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - sha256 = "03hr9i691cpg9q2xc1xr4lpd90xs8rba0xjh6qmc1vg7lgcdgbaa"; + hash = "sha256-G2t+wsVGj7cDbsnWss7XqKU421WqygPzAZkhbTu9Jks="; }; - nativeBuildInputs = [ wheel ]; + nativeBuildInputs = [ + wheel + ]; propagatedBuildInputs = [ appdirs + packaging requests rich setuptools diff --git a/pkgs/development/python-modules/pybullet/default.nix b/pkgs/development/python-modules/pybullet/default.nix index df9c1a0d21ea3..24c0014a1184f 100644 --- a/pkgs/development/python-modules/pybullet/default.nix +++ b/pkgs/development/python-modules/pybullet/default.nix @@ -8,11 +8,11 @@ buildPythonPackage rec { pname = "pybullet"; - version = "3.2.2"; + version = "3.2.4"; src = fetchPypi { inherit pname version; - sha256 = "sha256-Rtq2RZ2CjgS2YbuA4BS8+xPJ8bpAwCLl6xEy78/guOA="; + sha256 = "sha256-lZ6FvABRMkucSroj15Nlt33iFvnO68OS+dVR/mOg68Y="; }; buildInputs = [ diff --git a/pkgs/development/python-modules/pycm/default.nix b/pkgs/development/python-modules/pycm/default.nix index 90bd83f85d29c..549cc8a96ad2b 100644 --- a/pkgs/development/python-modules/pycm/default.nix +++ b/pkgs/development/python-modules/pycm/default.nix @@ -10,7 +10,7 @@ buildPythonPackage rec { pname = "pycm"; - version = "3.4"; + version = "3.5"; format = "setuptools"; disabled = pythonOlder "3.5"; @@ -18,8 +18,8 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "sepandhaghighi"; repo = pname; - rev = "v${version}"; - sha256 = "0agis9jh6kjf7k1vf1fiyf5h3lb9p0w9k710wwpsby292ydazr4f"; + rev = "refs/tags/v${version}"; + sha256 = "sha256-iDt1voNcn59bZN/AyKrWFBIymTT618o91kz2AV42hWs="; }; propagatedBuildInputs = [ diff --git a/pkgs/development/python-modules/pyezviz/default.nix b/pkgs/development/python-modules/pyezviz/default.nix index 6499b91dda645..1d01f491676e7 100644 --- a/pkgs/development/python-modules/pyezviz/default.nix +++ b/pkgs/development/python-modules/pyezviz/default.nix @@ -11,7 +11,7 @@ buildPythonPackage rec { pname = "pyezviz"; - version = "0.2.0.7"; + version = "0.2.0.8"; format = "setuptools"; disabled = pythonOlder "3.6"; @@ -20,7 +20,7 @@ buildPythonPackage rec { owner = "baqs"; repo = "pyEzviz"; rev = version; - sha256 = "sha256-cQsjEH+e2/rNXmCnhNRv2Vg5i/ax0x88w1pit2eVO2c="; + sha256 = "sha256-W2JtqRyNVUo74esmCvCQygIMB1+v77OW/ll48IMVj/Y="; }; propagatedBuildInputs = [ diff --git a/pkgs/development/python-modules/pyradios/default.nix b/pkgs/development/python-modules/pyradios/default.nix index 06d5f9724833b..da140669e8d24 100644 --- a/pkgs/development/python-modules/pyradios/default.nix +++ b/pkgs/development/python-modules/pyradios/default.nix @@ -3,6 +3,7 @@ , fetchPypi , appdirs , requests +, setuptools , pythonOlder }: @@ -21,6 +22,7 @@ buildPythonPackage rec { propagatedBuildInputs = [ appdirs requests + setuptools ]; # Tests and pythonImportsCheck require network access diff --git a/pkgs/development/python-modules/pyrevolve/default.nix b/pkgs/development/python-modules/pyrevolve/default.nix new file mode 100644 index 0000000000000..74fdc68c07e8e --- /dev/null +++ b/pkgs/development/python-modules/pyrevolve/default.nix @@ -0,0 +1,41 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, contexttimer +, versioneer +, cython +, numpy +, pytest +}: + +buildPythonPackage rec { + pname = "pyrevolve"; + version = "2.2"; + + src = fetchFromGitHub { + owner = "devitocodes"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-5a4zvyf2vfz8aI6vFMI2vxekYrcUi/YuPFvZnUOx+Zs="; + }; + + nativeBuildInputs = [ versioneer cython ]; + propagatedBuildInputs = [ contexttimer numpy ]; + + checkInputs = [ pytest ]; + # Using approach bellow bcs the tests fail with the pytestCheckHook, throwing the following error + # ImportError: cannot import name 'crevolve' from partially initialized module 'pyrevolve' + # (most likely due to a circular import) + checkPhase = '' + pytest + ''; + + pythonImportsCheck = [ "pyrevolve" ]; + + meta = with lib; { + homepage = "https://github.com/devitocodes/pyrevolve"; + description = "Python library to manage checkpointing for adjoints"; + license = licenses.epl10; + maintainers = with maintainers; [ atila ]; + }; +} diff --git a/pkgs/development/python-modules/pyrogram/default.nix b/pkgs/development/python-modules/pyrogram/default.nix index c8f7dccc4f0fe..4ef9493eeaa06 100644 --- a/pkgs/development/python-modules/pyrogram/default.nix +++ b/pkgs/development/python-modules/pyrogram/default.nix @@ -12,7 +12,7 @@ buildPythonPackage rec { pname = "pyrogram"; - version = "2.0.13"; + version = "2.0.14"; disabled = pythonOlder "3.7"; @@ -20,7 +20,7 @@ buildPythonPackage rec { owner = "pyrogram"; repo = "pyrogram"; rev = "v${version}"; - hash = "sha256-8mnGfW8/2RbU4gFS8e72KAxMGGkb8XrhsyK01wD97rI="; + hash = "sha256-uPScRNbN0XjdfokTNgzCdiVNRucDzNPR/60/IHEDUrg="; }; propagatedBuildInputs = [ diff --git a/pkgs/development/python-modules/python-benedict/default.nix b/pkgs/development/python-modules/python-benedict/default.nix index bf386d6d62dcc..03d6be7c306e5 100644 --- a/pkgs/development/python-modules/python-benedict/default.nix +++ b/pkgs/development/python-modules/python-benedict/default.nix @@ -19,7 +19,7 @@ buildPythonPackage rec { pname = "python-benedict"; - version = "0.25.0"; + version = "0.25.1"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -27,8 +27,8 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "fabiocaccamo"; repo = pname; - rev = version; - hash = "sha256-G7pTbxNcESMUiKpQxjiF0gwN5mBhmuwIDlzauN5JCB4="; + rev = "refs/tags/${version}"; + hash = "sha256-egOrotWgRyB6pdWUIRWogwdoK82g/1JfRDc85W4FrjQ="; }; propagatedBuildInputs = [ diff --git a/pkgs/development/python-modules/scmrepo/default.nix b/pkgs/development/python-modules/scmrepo/default.nix index 93854478853d2..2393c4cedd126 100644 --- a/pkgs/development/python-modules/scmrepo/default.nix +++ b/pkgs/development/python-modules/scmrepo/default.nix @@ -14,7 +14,7 @@ buildPythonPackage rec { pname = "scmrepo"; - version = "0.0.18"; + version = "0.0.19"; format = "pyproject"; disabled = pythonOlder "3.7"; @@ -23,7 +23,7 @@ buildPythonPackage rec { owner = "iterative"; repo = pname; rev = "refs/tags/${version}"; - hash = "sha256-eMtYVdKLiIaagDB1OEdYge6+McchOZPBcuIKGMzyvQQ="; + hash = "sha256-f/KV3NfIumkZcg9r421QhdyPU/274aAU4b78myi+fFY="; }; propagatedBuildInputs = [ diff --git a/pkgs/development/python-modules/skein/default.nix b/pkgs/development/python-modules/skein/default.nix index 56e853f73e2e2..8dc3391e9e97a 100644 --- a/pkgs/development/python-modules/skein/default.nix +++ b/pkgs/development/python-modules/skein/default.nix @@ -2,26 +2,29 @@ , callPackage , fetchPypi , isPy27 -, jre , lib -, pythonPackages - +, cryptography +, grpcio +, pyyaml +, grpcio-tools +, hadoop +, pytestCheckHook +, python }: -let +buildPythonPackage rec { pname = "skein"; version = "0.8.1"; src = fetchPypi { inherit pname version; sha256 = "04208b4be9df2dc68ac5b3e3ae51fd9b589add95ea1b67222a8de754d17b1efa"; }; - skeinJar = callPackage ./skeinjar.nix { inherit src version; }; -in -buildPythonPackage rec { - inherit pname version src; - disabled = isPy27; + # Update this hash if bumping versions + jarHash = "sha256-UGiEoTZ17IhLG72FZ18Zb+Ej4T8z9rMIMDUxzSZGZyY="; + skeinJar = callPackage ./skeinjar.nix { inherit pname version jarHash; }; - propagatedBuildInputs = with pythonPackages; [ cryptography grpcio grpcio-tools jupyter pytest pyyaml requests jre ]; + propagatedBuildInputs = [ cryptography grpcio pyyaml ]; + buildInputs = [ grpcio-tools ]; preBuild = '' # Ensure skein.jar exists skips the maven build in setup.py @@ -29,12 +32,30 @@ buildPythonPackage rec { ln -s ${skeinJar} skein/java/skein.jar ''; + postPatch = '' + substituteInPlace skein/core.py --replace "'yarn'" "'${hadoop}/bin/yarn'" \ + --replace "else 'java'" "else '${hadoop.jdk}/bin/java'" + ''; + + pythonImportsCheck = [ "skein" ]; + + checkInputs = [ pytestCheckHook ]; + # These tests require connecting to a YARN cluster. They could be done through NixOS tests later. + disabledTests = [ + "test_ui" + "test_tornado" + "test_kv" + "test_core" + "test_cli" + ]; + meta = with lib; { homepage = "https://jcristharif.com/skein"; description = "A tool and library for easily deploying applications on Apache YARN"; license = licenses.bsd3; - maintainers = with maintainers; [ alexbiehl ]; - broken = true; # maven repo src isn't stable + maintainers = with maintainers; [ alexbiehl illustris ]; + # https://github.com/NixOS/nixpkgs/issues/48663#issuecomment-1083031627 + # replace with https://github.com/NixOS/nixpkgs/pull/140325 once it is merged + broken = lib.traceIf isPy27 "${pname} not supported on ${python.executable}" isPy27; }; - } diff --git a/pkgs/development/python-modules/skein/skeinjar.nix b/pkgs/development/python-modules/skein/skeinjar.nix index d29e0e2f99c77..d559f237bf712 100644 --- a/pkgs/development/python-modules/skein/skeinjar.nix +++ b/pkgs/development/python-modules/skein/skeinjar.nix @@ -1,21 +1,20 @@ -{ callPackage, stdenv, maven, src, version }: +{ fetchPypi, unzip, stdenv, pname, version, jarHash }: -let - skeinRepo = callPackage ./skeinrepo.nix { inherit src version; }; -in stdenv.mkDerivation rec { - pname = "skein.jar"; + inherit pname version; - inherit version src; + src = fetchPypi { + inherit pname version; + format = "wheel"; + hash = jarHash; + }; - nativeBuildInputs = [ maven ]; + dontUnpack = true; - buildPhase = '' - mvn --offline -f java/pom.xml package -Dmaven.repo.local="${skeinRepo}" -Dskein.version=${version} -Dversion=${version} - ''; + nativeBuildInputs = [ unzip ]; installPhase = '' - # Making sure skein.jar exists skips the maven build in setup.py - mv java/target/skein-*.jar $out + unzip ${src} + mv ./skein/java/skein.jar $out ''; } diff --git a/pkgs/development/python-modules/skein/skeinrepo.nix b/pkgs/development/python-modules/skein/skeinrepo.nix deleted file mode 100644 index 86cbf82b7f0f2..0000000000000 --- a/pkgs/development/python-modules/skein/skeinrepo.nix +++ /dev/null @@ -1,44 +0,0 @@ -{ autoPatchelfHook, lib, maven, stdenv, src, version }: - -stdenv.mkDerivation rec { - pname = "skein-maven-repo"; - - inherit version src; - - nativeBuildInputs = [ maven ] ++ lib.optional stdenv.isLinux autoPatchelfHook; - - installPhase = '' - mkdir -p $out - - archs="${ - if stdenv.isLinux - then "linux-x86_32 linux-x86_64" - else "osx-x86_64" - }" - - for arch in $archs - do - mvn -Dmaven.repo.local=$out dependency:get -Dartifact=com.google.protobuf:protoc:3.0.0:exe:$arch - mvn -Dmaven.repo.local=$out dependency:get -Dartifact=io.grpc:protoc-gen-grpc-java:1.16.0:exe:$arch - done - - if ${ lib.boolToString stdenv.isLinux } - then - autoPatchelf $out - fi - - # We have to use maven package here as dependency:go-offline doesn't - # fetch every required jar. - mvn -f java/pom.xml -Dmaven.repo.local=$out package - - rm $(find $out -name _remote.repositories) - rm $(find $out -name resolver-status.properties) - ''; - - outputHashMode = "recursive"; - outputHashAlgo = "sha256"; - outputHash = if stdenv.isLinux - then "12f0q3444qw6y4f6qsa9540a0fz4cgi844zzi8z1phqn3k4dnl6v" - else "0bjbwiv17cary1isxca0m2hsvgs1i5fh18z247h1hky73lnhbrz8"; - -} // lib.optionalAttrs stdenv.isLinux { dontAutoPatchelf = true; } diff --git a/pkgs/development/python-modules/types-dateutil/default.nix b/pkgs/development/python-modules/types-dateutil/default.nix index 5a1e7220ec44b..8e52c5b6e0144 100644 --- a/pkgs/development/python-modules/types-dateutil/default.nix +++ b/pkgs/development/python-modules/types-dateutil/default.nix @@ -5,12 +5,12 @@ buildPythonPackage rec { pname = "types-python-dateutil"; - version = "2.8.12"; + version = "2.8.14"; format = "setuptools"; src = fetchPypi { inherit pname version; - sha256 = "sha256-7zBTt0XwHERDtRK2s9WwT7ry1HaqUDtsyTIEah7fpWo="; + sha256 = "sha256-Nnwf+hpSpLKlNMmzC0CwHyt/LqR6l/2CH2x20ceuMSk="; }; pythonImportsCheck = [ "dateutil-stubs" ]; diff --git a/pkgs/development/python-modules/types-pytz/default.nix b/pkgs/development/python-modules/types-pytz/default.nix index eecf45c82fa5b..d3ac7e4932bb1 100644 --- a/pkgs/development/python-modules/types-pytz/default.nix +++ b/pkgs/development/python-modules/types-pytz/default.nix @@ -5,12 +5,12 @@ buildPythonPackage rec { pname = "types-pytz"; - version = "2021.3.6"; + version = "2021.3.7"; format = "setuptools"; src = fetchPypi { inherit pname version; - sha256 = "sha256-dFR/2Q2NirTx7t86NEp9GG2XSGlziV+BIhpxLh4s2ZM="; + sha256 = "sha256-EdW6BiaBZ5U8zEo+7hksJLQtANKu9FbBYKh5iJPLIIE="; }; # Modules doesn't have tests diff --git a/pkgs/development/python-modules/types-requests/default.nix b/pkgs/development/python-modules/types-requests/default.nix index 59f8d50fcb123..f425785449b8f 100644 --- a/pkgs/development/python-modules/types-requests/default.nix +++ b/pkgs/development/python-modules/types-requests/default.nix @@ -6,12 +6,12 @@ buildPythonPackage rec { pname = "types-requests"; - version = "2.27.20"; + version = "2.27.22"; format = "setuptools"; src = fetchPypi { inherit pname version; - sha256 = "sha256-YzRFc83mxO/UTYZ8AVjZ+35r65VyHL6YgvP4V+6KU5g="; + sha256 = "sha256-LoGnTS2x5tBrqkqeGJZyBUNzkpeiParAQ2o04vxzJXQ="; }; propagatedBuildInputs = [ diff --git a/pkgs/development/python-modules/types-tabulate/default.nix b/pkgs/development/python-modules/types-tabulate/default.nix index 1fc11aeede949..5da6ea016801d 100644 --- a/pkgs/development/python-modules/types-tabulate/default.nix +++ b/pkgs/development/python-modules/types-tabulate/default.nix @@ -5,11 +5,11 @@ buildPythonPackage rec { pname = "types-tabulate"; - version = "0.8.7"; + version = "0.8.8"; src = fetchPypi { inherit pname version; - hash = "sha256-Cs0ClYZuXy3i6Qc4/wvBIBdR4d0Ci9MMv6Qap6Zpkp4="; + hash = "sha256-CzGcfhDdVh98FfVt7DR8MZP9hl9Ovl/x7LAg6vp5O8M="; }; # Module doesn't have tests diff --git a/pkgs/development/python-modules/types-toml/default.nix b/pkgs/development/python-modules/types-toml/default.nix index 263fc0edd7baa..ed965cbb8c489 100644 --- a/pkgs/development/python-modules/types-toml/default.nix +++ b/pkgs/development/python-modules/types-toml/default.nix @@ -5,12 +5,12 @@ buildPythonPackage rec { pname = "types-toml"; - version = "0.10.5"; + version = "0.10.6"; format = "setuptools"; src = fetchPypi { inherit pname version; - sha256 = "sha256-+UlGOjiCAL45Lvk5nbrT4eO75tRUPYStk9lsP9oCgIA="; + sha256 = "sha256-aus+17+oaTgVUcd07WqRQuPu2YqD76UQipYy6v1W3NM="; }; # Module doesn't have tests diff --git a/pkgs/development/python-modules/types-typed-ast/default.nix b/pkgs/development/python-modules/types-typed-ast/default.nix index e08450c6a3e74..2c8e2a09580ef 100644 --- a/pkgs/development/python-modules/types-typed-ast/default.nix +++ b/pkgs/development/python-modules/types-typed-ast/default.nix @@ -5,12 +5,12 @@ buildPythonPackage rec { pname = "types-typed-ast"; - version = "1.5.2"; + version = "1.5.4"; format = "setuptools"; src = fetchPypi { inherit pname version; - hash = "sha256-bY/S6pCDbLQxEayKrnzYZOCYWTyT7M66kP5G1rewxz4="; + hash = "sha256-MlOHn/Y6+4lkZa/kIoocTfLmPNw57vm5dD1QC42aUXY="; }; # Module doesn't have tests |