2019-12-29 18:04:44 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, isPy27
|
2021-01-04 03:00:49 +00:00
|
|
|
, pytestCheckHook
|
2019-12-29 18:04:44 +00:00
|
|
|
, pytestcov
|
|
|
|
, jinja2
|
|
|
|
, pyyaml
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "typesystem";
|
|
|
|
version = "0.2.4";
|
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "encode";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1k0jwcky17zwaz2vx4x2zbsnp270g4mgn7kx5bpl8jgx76qmsnba";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
jinja2
|
|
|
|
pyyaml
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2021-01-04 03:00:49 +00:00
|
|
|
pytestCheckHook
|
2019-12-29 18:04:44 +00:00
|
|
|
pytestcov
|
|
|
|
];
|
|
|
|
|
2021-02-05 23:52:07 +00:00
|
|
|
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"
|
|
|
|
];
|
2021-02-14 22:54:55 +00:00
|
|
|
disabledTestPaths = [
|
2021-02-05 23:52:07 +00:00
|
|
|
# for some reason jinja2 not picking up forms directory (1% of tests)
|
|
|
|
"tests/test_forms.py"
|
|
|
|
];
|
2019-12-29 18:04:44 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A type system library for Python";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/encode/typesystem";
|
2019-12-29 18:04:44 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|