about summary refs log tree commit diff
path: root/pkgs/development/python-modules/matchpy/default.nix
blob: a9f37b52c1b484f4459eb18fe4cde5096f9c5385 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ lib
, buildPythonPackage
, fetchPypi
, hopcroftkarp
, multiset
, pytest_3
, pytestrunner
, hypothesis
, setuptools_scm
, isPy27
}:

buildPythonPackage rec {
  pname = "matchpy";
  version = "0.5.1";
  disabled = isPy27;

  src = fetchPypi {
    inherit pname version;
    sha256 = "1vvf1cd9kw5z1mzvypc9f030nd18lgvvjc8j56b1s9b7dyslli2r";
  };

  postPatch = ''
    substituteInPlace setup.cfg --replace "hypothesis>=3.6,<4.0" "hypothesis"
  '';

  buildInputs = [ setuptools_scm pytestrunner ];
  checkInputs = [ pytest_3 hypothesis ];
  propagatedBuildInputs = [ hopcroftkarp multiset ];

  meta = with lib; {
    description = "A library for pattern matching on symbolic expressions";
    homepage = https://github.com/HPAC/matchpy;
    license = licenses.mit;
    maintainers = [ maintainers.costrouc ];
  };
}