Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / parse-type / default.nix
blobdecb15ff5e6c348150d293e66ac94b5b11b13856
1 { lib, fetchPypi
2 , buildPythonPackage, pythonOlder
3 , pytest, pytestrunner
4 , parse, six, enum34
5 }:
7 buildPythonPackage rec {
8   pname = "parse_type";
9   version = "0.5.2";
11   src = fetchPypi {
12     inherit pname version;
13     sha256 = "02wclgiqky06y36b3q07b7ngpks5j0gmgl6n71ac2j2hscc0nsbz";
14   };
16   checkInputs = [ pytest pytestrunner ];
17   propagatedBuildInputs = [ parse six ] ++ lib.optional (pythonOlder "3.4") enum34;
19   checkPhase = ''
20     py.test tests
21   '';
23   meta = with lib; {
24     homepage = "https://github.com/jenisys/parse_type";
25     description = "Simplifies to build parse types based on the parse module";
26     license = licenses.bsd3;
27     maintainers = with maintainers; [ alunduil ];
28   };