14 buildPythonPackage rec {
16 version = "0.5.5"; # Don't upgrade to 4.3.1, this tag is very old
17 format = "setuptools";
20 src = fetchFromGitHub {
24 hash = "sha256-n5rXIjqVQZzEbfIZVQiGLh2PR1DHAJ9gumcrbvwnasA=";
28 # https://github.com/HPAC/matchpy/pull/77
30 name = "fix-versioneer-py312.patch";
31 url = "https://github.com/HPAC/matchpy/commit/965d7c39689b9f2473a78ed06b83f2be701e234d.patch";
32 hash = "sha256-xXADCSIhq1ARny2twzrhR1J8LkMFWFl6tmGxrM8RvkU=";
37 sed -i '/pytest-runner/d' setup.cfg
39 substituteInPlace setup.cfg \
40 --replace "multiset>=2.0,<3.0" "multiset"
43 nativeBuildInputs = [ setuptools-scm ];
45 propagatedBuildInputs = [
55 pythonImportsCheck = [ "matchpy" ];
58 description = "Library for pattern matching on symbolic expressions";
59 homepage = "https://github.com/HPAC/matchpy";
60 license = licenses.mit;