mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
python3Packages.parse-type: cleanup
This commit is contained in:
parent
1ae7ba3fae
commit
d0abc6e50b
1 changed files with 18 additions and 10 deletions
|
@ -1,7 +1,10 @@
|
||||||
{ lib, fetchFromGitHub
|
{ lib
|
||||||
, buildPythonPackage, pythonOlder
|
, buildPythonPackage
|
||||||
, pytest, pytest-runner
|
, fetchFromGitHub
|
||||||
, parse, six, enum34
|
, parse
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
, six
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -14,8 +17,15 @@ buildPythonPackage rec {
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-CJroqJIi5DpmR8i1lr8OJ+234615PhpVUsqK91XOT3E=";
|
sha256 = "sha256-CJroqJIi5DpmR8i1lr8OJ+234615PhpVUsqK91XOT3E=";
|
||||||
};
|
};
|
||||||
checkInputs = [ pytest pytest-runner ];
|
|
||||||
propagatedBuildInputs = [ parse six ] ++ lib.optional (pythonOlder "3.4") enum34;
|
propagatedBuildInputs = [
|
||||||
|
parse
|
||||||
|
six
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace pytest.ini \
|
substituteInPlace pytest.ini \
|
||||||
|
@ -25,13 +35,11 @@ buildPythonPackage rec {
|
||||||
--replace "--junit-xml=build/testing/report.xml" ""
|
--replace "--junit-xml=build/testing/report.xml" ""
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkPhase = ''
|
pythonImportsCheck = [ "parse_type" ];
|
||||||
py.test tests
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/jenisys/parse_type";
|
|
||||||
description = "Simplifies to build parse types based on the parse module";
|
description = "Simplifies to build parse types based on the parse module";
|
||||||
|
homepage = "https://github.com/jenisys/parse_type";
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
maintainers = with maintainers; [ alunduil ];
|
maintainers = with maintainers; [ alunduil ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue