nixpkgs/pkgs/development/python-modules/parse-type/default.nix
R. RyanTM a17eb40fac python37Packages.parse-type: 0.4.2 -> 0.5.2
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/python3.7-parse_type/versions
2019-08-05 10:02:50 -07:00

30 lines
718 B
Nix

{ stdenv, fetchPypi
, buildPythonPackage, pythonOlder
, pytest, pytestrunner
, parse, six, enum34
}:
buildPythonPackage rec {
pname = "parse_type";
version = "0.5.2";
src = fetchPypi {
inherit pname version;
sha256 = "02wclgiqky06y36b3q07b7ngpks5j0gmgl6n71ac2j2hscc0nsbz";
};
checkInputs = [ pytest pytestrunner ];
propagatedBuildInputs = [ parse six ] ++ stdenv.lib.optional (pythonOlder "3.4") enum34;
checkPhase = ''
py.test tests
'';
meta = with stdenv.lib; {
homepage = https://github.com/jenisys/parse_type;
description = "Simplifies to build parse types based on the parse module";
license = licenses.bsd3;
maintainers = with maintainers; [ alunduil ];
};
}