2018-07-21 02:44:44 +02:00
|
|
|
{ stdenv, fetchPypi
|
2017-08-24 05:57:28 +02:00
|
|
|
, buildPythonPackage, pythonOlder
|
|
|
|
, pytest, pytestrunner
|
|
|
|
, parse, six, enum34
|
|
|
|
}:
|
2018-01-01 11:47:56 +01:00
|
|
|
|
2017-08-24 05:57:28 +02:00
|
|
|
buildPythonPackage rec {
|
2018-01-01 11:47:56 +01:00
|
|
|
pname = "parse_type";
|
2019-08-05 19:02:50 +02:00
|
|
|
version = "0.5.2";
|
2017-08-24 05:57:28 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2018-01-01 11:47:56 +01:00
|
|
|
inherit pname version;
|
2019-08-05 19:02:50 +02:00
|
|
|
sha256 = "02wclgiqky06y36b3q07b7ngpks5j0gmgl6n71ac2j2hscc0nsbz";
|
2017-08-24 05:57:28 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest pytestrunner ];
|
|
|
|
propagatedBuildInputs = [ parse six ] ++ stdenv.lib.optional (pythonOlder "3.4") enum34;
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test tests
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/jenisys/parse_type";
|
2017-08-24 05:57:28 +02:00
|
|
|
description = "Simplifies to build parse types based on the parse module";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ alunduil ];
|
|
|
|
};
|
|
|
|
}
|