Merge pull request #135646 from fabaff/bump-parse-type

python3Packages.parse-type: 0.5.2 -> 0.5.6

authored by

Fabian Affolter and committed by
GitHub
ee006e93 cc0b2337

+31 -14
+31 -14
pkgs/development/python-modules/parse-type/default.nix
··· 1 - { lib, fetchPypi 2 - , buildPythonPackage, pythonOlder 3 - , pytest, pytest-runner 4 - , parse, six, enum34 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , parse 5 + , pytestCheckHook 6 + , pythonOlder 7 + , six 5 8 }: 6 9 7 10 buildPythonPackage rec { 8 - pname = "parse_type"; 9 - version = "0.5.2"; 11 + pname = "parse-type"; 12 + version = "0.5.6"; 10 13 11 - src = fetchPypi { 12 - inherit pname version; 13 - sha256 = "02wclgiqky06y36b3q07b7ngpks5j0gmgl6n71ac2j2hscc0nsbz"; 14 + src = fetchFromGitHub { 15 + owner = "jenisys"; 16 + repo = "parse_type"; 17 + rev = "v${version}"; 18 + sha256 = "sha256-CJroqJIi5DpmR8i1lr8OJ+234615PhpVUsqK91XOT3E="; 14 19 }; 15 20 16 - checkInputs = [ pytest pytest-runner ]; 17 - propagatedBuildInputs = [ parse six ] ++ lib.optional (pythonOlder "3.4") enum34; 21 + propagatedBuildInputs = [ 22 + parse 23 + six 24 + ]; 18 25 19 - checkPhase = '' 20 - py.test tests 26 + checkInputs = [ 27 + pytestCheckHook 28 + ]; 29 + 30 + postPatch = '' 31 + substituteInPlace pytest.ini \ 32 + --replace "--metadata PACKAGE_UNDER_TEST parse_type" "" \ 33 + --replace "--metadata PACKAGE_VERSION 0.5.6" "" \ 34 + --replace "--html=build/testing/report.html --self-contained-html" "" \ 35 + --replace "--junit-xml=build/testing/report.xml" "" 21 36 ''; 37 + 38 + pythonImportsCheck = [ "parse_type" ]; 22 39 23 40 meta = with lib; { 24 - homepage = "https://github.com/jenisys/parse_type"; 25 41 description = "Simplifies to build parse types based on the parse module"; 42 + homepage = "https://github.com/jenisys/parse_type"; 26 43 license = licenses.bsd3; 27 44 maintainers = with maintainers; [ alunduil ]; 28 45 };