evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / parse-type / default.nix
blob2e2a8dcba79c8466008a02af4277b09fdf22f4cd
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   parse,
6   pytestCheckHook,
7   six,
8 }:
10 buildPythonPackage rec {
11   pname = "parse-type";
12   version = "0.6.3";
13   format = "setuptools";
15   src = fetchFromGitHub {
16     owner = "jenisys";
17     repo = "parse_type";
18     rev = "refs/tags/v${version}";
19     hash = "sha256-oKPyzEKrP9umnDzPC3HwSgWmWkCg/h0ChYVrpseklf8=";
20   };
22   propagatedBuildInputs = [
23     parse
24     six
25   ];
27   nativeCheckInputs = [ pytestCheckHook ];
29   postPatch = ''
30     substituteInPlace pytest.ini \
31       --replace "--metadata PACKAGE_UNDER_TEST parse_type" "" \
32       --replace "--metadata PACKAGE_VERSION ${version}" "" \
33       --replace "--html=build/testing/report.html --self-contained-html" "" \
34       --replace "--junit-xml=build/testing/report.xml" ""
35   '';
37   pythonImportsCheck = [ "parse_type" ];
39   meta = with lib; {
40     description = "Simplifies to build parse types based on the parse module";
41     homepage = "https://github.com/jenisys/parse_type";
42     license = licenses.bsd3;
43     maintainers = with maintainers; [ alunduil ];
44   };