python3Packages.typesystem: 0.2.4 -> 0.4.1

This commit is contained in:
Fabian Affolter 2022-01-08 12:29:23 +01:00 committed by Jonathan Ringer
parent 982de405d7
commit cf62e9c07a

View File

@ -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 ];
};
}