From 1fd619a368a0d678d6b2217a582c3c82a7a2f65b Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 22 Aug 2021 13:20:00 +0200 Subject: [PATCH] python3Packages.immutables: 0.15 -> 0.16 --- .../python-modules/immutables/default.nix | 30 ++++++++++++++----- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/immutables/default.nix b/pkgs/development/python-modules/immutables/default.nix index 196ea78bba70..896db29f2c1a 100644 --- a/pkgs/development/python-modules/immutables/default.nix +++ b/pkgs/development/python-modules/immutables/default.nix @@ -1,21 +1,37 @@ { lib , buildPythonPackage -, fetchPypi +, fetchFromGitHub , pytestCheckHook , pythonOlder +, mypy +, typing-extensions }: buildPythonPackage rec { pname = "immutables"; - version = "0.15"; - disabled = pythonOlder "3.5"; + version = "0.16"; + disabled = pythonOlder "3.6"; - src = fetchPypi { - inherit pname version; - sha256 = "3713ab1ebbb6946b7ce1387bb9d1d7f5e09c45add58c2a2ee65f963c171e746b"; + src = fetchFromGitHub { + owner = "MagicStack"; + repo = pname; + rev = "v${version}"; + sha256 = "1f6nlpvrs41cjrnikx48qd0rlf7d89h6dzlr5zcndzsim7fgsmgz"; }; - checkInputs = [ pytestCheckHook ]; + propagatedBuildInputs = [ + typing-extensions + ]; + + checkInputs = [ + mypy + pytestCheckHook + ]; + + disabledTests = [ + # Version mismatch + "testMypyImmu" + ]; pythonImportsCheck = [ "immutables" ];