python3Packages.matchpy: 0.5.1 -> 0.5.5
This commit is contained in:
parent
60d698f8bf
commit
cc58bb1169
1 changed files with 29 additions and 23 deletions
|
@ -1,11 +1,9 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchpatch
|
, fetchFromGitHub
|
||||||
, fetchPypi
|
|
||||||
, hopcroftkarp
|
, hopcroftkarp
|
||||||
, multiset
|
, multiset
|
||||||
, pytest
|
, pytestCheckHook
|
||||||
, pytest-runner
|
|
||||||
, hypothesis
|
, hypothesis
|
||||||
, setuptools-scm
|
, setuptools-scm
|
||||||
, isPy27
|
, isPy27
|
||||||
|
@ -13,37 +11,45 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "matchpy";
|
pname = "matchpy";
|
||||||
version = "0.5.1";
|
version = "0.5.5"; # Don't upgrade to 4.3.1, this tag is very old
|
||||||
disabled = isPy27;
|
disabled = isPy27;
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "HPAC";
|
||||||
sha256 = "1vvf1cd9kw5z1mzvypc9f030nd18lgvvjc8j56b1s9b7dyslli2r";
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
hash = "sha256-n5rXIjqVQZzEbfIZVQiGLh2PR1DHAJ9gumcrbvwnasA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
|
||||||
# Fix tests for pytest 4. Remove with the next release
|
|
||||||
(fetchpatch {
|
|
||||||
url = "https://github.com/HPAC/matchpy/commit/b405a2717a7793d58c47b2e2197d9d00c06fb13c.patch";
|
|
||||||
includes = [ "tests/conftest.py" ];
|
|
||||||
sha256 = "1b6gqf2vy9qxg384nqr9k8il335afhbdmlyx4vhd8r8rqpv7gax9";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
sed -i '/pytest-runner/d' setup.cfg
|
||||||
|
|
||||||
substituteInPlace setup.cfg \
|
substituteInPlace setup.cfg \
|
||||||
--replace "hypothesis>=3.6,<4.0" "hypothesis" \
|
--replace "multiset>=2.0,<3.0" "multiset"
|
||||||
--replace "pytest>=3.0,<4.0" "pytest"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildInputs = [ setuptools-scm pytest-runner ];
|
nativeBuildInputs = [
|
||||||
checkInputs = [ pytest hypothesis ];
|
setuptools-scm
|
||||||
propagatedBuildInputs = [ hopcroftkarp multiset ];
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
hopcroftkarp
|
||||||
|
multiset
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
hypothesis
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"matchpy"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A library for pattern matching on symbolic expressions";
|
description = "A library for pattern matching on symbolic expressions";
|
||||||
homepage = "https://github.com/HPAC/matchpy";
|
homepage = "https://github.com/HPAC/matchpy";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = [ maintainers.costrouc ];
|
maintainers = with maintainers; [ costrouc ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue