1{ lib
2, buildPythonPackage
3, fetchPypi
4, hopcroftkarp
5, multiset
6, pytest
7, pytestrunner
8, hypothesis
9, setuptools_scm
10, isPy27
11}:
12
13buildPythonPackage rec {
14 pname = "matchpy";
15 version = "0.4.6";
16 disabled = isPy27;
17
18 src = fetchPypi {
19 inherit pname version;
20 sha256 = "eefa1e50a10e1255db61bc2522a6768ad0701f8854859f293ebaa442286faadd";
21 };
22
23 buildInputs = [ setuptools_scm pytestrunner ];
24 checkInputs = [ pytest hypothesis ];
25 propagatedBuildInputs = [ hopcroftkarp multiset ];
26
27 meta = with lib; {
28 description = "A library for pattern matching on symbolic expressions";
29 homepage = https://github.com/HPAC/matchpy;
30 license = licenses.mit;
31 maintainers = [ maintainers.costrouc ];
32 };
33}