Merge pull request #135646 from fabaff/bump-parse-type
python3Packages.parse-type: 0.5.2 -> 0.5.6
This commit is contained in:
commit
ee006e93df
@ -1,28 +1,45 @@
|
||||
{ lib, fetchPypi
|
||||
, buildPythonPackage, pythonOlder
|
||||
, pytest, pytest-runner
|
||||
, parse, six, enum34
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, parse
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, six
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "parse_type";
|
||||
version = "0.5.2";
|
||||
pname = "parse-type";
|
||||
version = "0.5.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "02wclgiqky06y36b3q07b7ngpks5j0gmgl6n71ac2j2hscc0nsbz";
|
||||
src = fetchFromGitHub {
|
||||
owner = "jenisys";
|
||||
repo = "parse_type";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-CJroqJIi5DpmR8i1lr8OJ+234615PhpVUsqK91XOT3E=";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest pytest-runner ];
|
||||
propagatedBuildInputs = [ parse six ] ++ lib.optional (pythonOlder "3.4") enum34;
|
||||
propagatedBuildInputs = [
|
||||
parse
|
||||
six
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
py.test tests
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pytest.ini \
|
||||
--replace "--metadata PACKAGE_UNDER_TEST parse_type" "" \
|
||||
--replace "--metadata PACKAGE_VERSION 0.5.6" "" \
|
||||
--replace "--html=build/testing/report.html --self-contained-html" "" \
|
||||
--replace "--junit-xml=build/testing/report.xml" ""
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "parse_type" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/jenisys/parse_type";
|
||||
description = "Simplifies to build parse types based on the parse module";
|
||||
homepage = "https://github.com/jenisys/parse_type";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ alunduil ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user