From 8c023415b9696df1361d338fea00ee4cce7af73a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 20 Feb 2022 14:54:56 +0100 Subject: [PATCH 1/2] python3Packages.newversion: init at 1.8.2 --- .../python-modules/newversion/default.nix | 49 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 51 insertions(+) create mode 100644 pkgs/development/python-modules/newversion/default.nix diff --git a/pkgs/development/python-modules/newversion/default.nix b/pkgs/development/python-modules/newversion/default.nix new file mode 100644 index 000000000000..f340dc3a1b32 --- /dev/null +++ b/pkgs/development/python-modules/newversion/default.nix @@ -0,0 +1,49 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, packaging +, poetry-core +, pytestCheckHook +, pythonOlder +, typing-extensions +}: + +buildPythonPackage rec { + pname = "newversion"; + version = "1.8.2"; + format = "pyproject"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "vemel"; + repo = pname; + rev = version; + hash = "sha256-27HWMzSzyAbiOW7OUhlupRWIVJG6DrpXObXmxlCsmxU="; + }; + + nativeBuildInputs = [ + poetry-core + ]; + + propagatedBuildInputs = [ + packaging + ] ++ lib.optionals (pythonOlder "3.8") [ + typing-extensions + ]; + + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "newversion" + ]; + + meta = with lib; { + description = "PEP 440 version manager"; + homepage = "https://github.com/vemel/newversion"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 65704adecf1a..0af581629263 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5416,6 +5416,8 @@ in { nevow = callPackage ../development/python-modules/nevow { }; + newversion = callPackage ../development/python-modules/newversion { }; + nexia = callPackage ../development/python-modules/nexia { }; nextcloudmonitor = callPackage ../development/python-modules/nextcloudmonitor { }; From 712344f0f925b7c312969086050b9f44a720cbb0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 20 Feb 2022 14:55:19 +0100 Subject: [PATCH 2/2] python310Packages.mypy-boto3-builder: 6.3.2 -> 7.1.2 --- .../mypy-boto3-builder/default.nix | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/mypy-boto3-builder/default.nix b/pkgs/development/python-modules/mypy-boto3-builder/default.nix index b47c6701a008..4bb371456373 100644 --- a/pkgs/development/python-modules/mypy-boto3-builder/default.nix +++ b/pkgs/development/python-modules/mypy-boto3-builder/default.nix @@ -7,6 +7,7 @@ , jinja2 , md-toc , mdformat +, newversion , poetry-core , pyparsing , pytestCheckHook @@ -15,16 +16,16 @@ buildPythonPackage rec { pname = "mypy-boto3-builder"; - version = "6.3.2"; + version = "7.1.2"; format = "pyproject"; - disabled = pythonOlder "3.8"; + disabled = pythonOlder "3.10"; src = fetchFromGitHub { owner = "vemel"; repo = "mypy_boto3_builder"; rev = version; - sha256 = "1krsh8pmxigpzz21gvsy7qnpnwfkyyjbz92bqp9iflf7kklfhb79"; + hash = "sha256-p81Dk6Kv0MzHvexhM8Su5/yIpB+ZGBFqOtm0D18l26s="; }; nativeBuildInputs = [ @@ -38,6 +39,7 @@ buildPythonPackage rec { jinja2 md-toc mdformat + newversion pyparsing ]; @@ -45,12 +47,14 @@ buildPythonPackage rec { pytestCheckHook ]; - disabledTests = [ - # Should be fixed with 5.x - "test_get_types" + pythonImportsCheck = [ + "mypy_boto3_builder" ]; - pythonImportsCheck = [ "mypy_boto3_builder" ]; + disabledTests = [ + # Tests require network access + "TestBotocoreChangelogChangelog" + ]; meta = with lib; { description = "Type annotations builder for boto3";