Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / typesystem / default.nix
blobc278680404ba06e1ecdf71229ccb888d952dc20f
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , isPy27
5 , pytestCheckHook
6 , pytestcov
7 , jinja2
8 , pyyaml
9 }:
11 buildPythonPackage rec {
12   pname = "typesystem";
13   version = "0.2.4";
14   disabled = isPy27;
16   src = fetchFromGitHub {
17     owner = "encode";
18     repo = pname;
19     rev = version;
20     sha256 = "1k0jwcky17zwaz2vx4x2zbsnp270g4mgn7kx5bpl8jgx76qmsnba";
21   };
23   propagatedBuildInputs = [
24     jinja2
25     pyyaml
26   ];
28   checkInputs = [
29     pytestCheckHook
30     pytestcov
31   ];
33   disabledTests = [
34     # https://github.com/encode/typesystem/issues/102. cosmetic issue where python3.8 changed
35     # the default string formatting of regular expression flags which breaks test assertion
36     "test_to_json_schema_complex_regular_expression"
37   ];
38   disabledTestPaths = [
39     # for some reason jinja2 not picking up forms directory (1% of tests)
40     "tests/test_forms.py"
41   ];
43   meta = with lib; {
44     description = "A type system library for Python";
45     homepage = "https://github.com/encode/typesystem";
46     license = licenses.bsd3;
47     maintainers = [ maintainers.costrouc ];
48   };