From cf62e9c07a29453468ede8917ecb3800392ee3a3 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 8 Jan 2022 12:29:23 +0100 Subject: [PATCH] python3Packages.typesystem: 0.2.4 -> 0.4.1 --- .../python-modules/typesystem/default.nix | 26 +++++++------------ 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/pkgs/development/python-modules/typesystem/default.nix b/pkgs/development/python-modules/typesystem/default.nix index f7dcf33ea7fd..30d26293e5d1 100644 --- a/pkgs/development/python-modules/typesystem/default.nix +++ b/pkgs/development/python-modules/typesystem/default.nix @@ -1,23 +1,24 @@ { lib , buildPythonPackage , fetchFromGitHub -, isPy27 -, pytestCheckHook -, pytest-cov , jinja2 +, pytestCheckHook +, pythonOlder , pyyaml }: buildPythonPackage rec { pname = "typesystem"; - version = "0.2.4"; - disabled = isPy27; + version = "0.4.1"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "encode"; repo = pname; rev = version; - sha256 = "1k0jwcky17zwaz2vx4x2zbsnp270g4mgn7kx5bpl8jgx76qmsnba"; + hash = "sha256-fjnheHWjIDbJY1iXCRKCpqTCwtUWK9YXbynRCZquQ7c="; }; propagatedBuildInputs = [ @@ -27,23 +28,16 @@ buildPythonPackage rec { checkInputs = [ pytestCheckHook - pytest-cov ]; - disabledTests = [ - # https://github.com/encode/typesystem/issues/102. cosmetic issue where python3.8 changed - # the default string formatting of regular expression flags which breaks test assertion - "test_to_json_schema_complex_regular_expression" - ]; - disabledTestPaths = [ - # for some reason jinja2 not picking up forms directory (1% of tests) - "tests/test_forms.py" + pythonImportsCheck = [ + "typesystem" ]; meta = with lib; { description = "A type system library for Python"; homepage = "https://github.com/encode/typesystem"; license = licenses.bsd3; - maintainers = [ maintainers.costrouc ]; + maintainers = with maintainers; [ costrouc ]; }; }