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 { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, isPy27
, pytestCheckHook
, pytest-cov
, jinja2 , jinja2
, pytestCheckHook
, pythonOlder
, pyyaml , pyyaml
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "typesystem"; pname = "typesystem";
version = "0.2.4"; version = "0.4.1";
disabled = isPy27; format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "encode"; owner = "encode";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "1k0jwcky17zwaz2vx4x2zbsnp270g4mgn7kx5bpl8jgx76qmsnba"; hash = "sha256-fjnheHWjIDbJY1iXCRKCpqTCwtUWK9YXbynRCZquQ7c=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -27,23 +28,16 @@ buildPythonPackage rec {
checkInputs = [ checkInputs = [
pytestCheckHook pytestCheckHook
pytest-cov
]; ];
disabledTests = [ pythonImportsCheck = [
# https://github.com/encode/typesystem/issues/102. cosmetic issue where python3.8 changed "typesystem"
# 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"
]; ];
meta = with lib; { meta = with lib; {
description = "A type system library for Python"; description = "A type system library for Python";
homepage = "https://github.com/encode/typesystem"; homepage = "https://github.com/encode/typesystem";
license = licenses.bsd3; license = licenses.bsd3;
maintainers = [ maintainers.costrouc ]; maintainers = with maintainers; [ costrouc ];
}; };
} }