ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / matchpy / default.nix
blobefcf1741ab41544d4ad0ec4caddebdce490a2de7
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , hopcroftkarp
5 , multiset
6 , pytestCheckHook
7 , hypothesis
8 , setuptools-scm
9 , isPy27
12 buildPythonPackage rec {
13   pname = "matchpy";
14   version = "0.5.5"; # Don't upgrade to 4.3.1, this tag is very old
15   disabled = isPy27;
17   src = fetchFromGitHub {
18     owner = "HPAC";
19     repo = pname;
20     rev = version;
21     hash = "sha256-n5rXIjqVQZzEbfIZVQiGLh2PR1DHAJ9gumcrbvwnasA=";
22   };
24   postPatch = ''
25     sed -i '/pytest-runner/d' setup.cfg
27     substituteInPlace setup.cfg \
28       --replace "multiset>=2.0,<3.0" "multiset"
29   '';
31   nativeBuildInputs = [
32     setuptools-scm
33   ];
35   propagatedBuildInputs = [
36     hopcroftkarp
37     multiset
38   ];
40   checkInputs = [
41     pytestCheckHook
42     hypothesis
43   ];
45   pythonImportsCheck = [
46     "matchpy"
47   ];
49   meta = with lib; {
50     description = "A library for pattern matching on symbolic expressions";
51     homepage = "https://github.com/HPAC/matchpy";
52     license = licenses.mit;
53     maintainers = with maintainers; [ costrouc ];
54   };