python3.pkgs.multiset: relax setuptools-scm dependency

This commit is contained in:
Theodore Ni
2023-08-22 23:04:38 -07:00
parent 07fd57bfb6
commit 4e481477c1

View File

@@ -1,8 +1,10 @@
{ lib
, buildPythonPackage
, fetchpatch
, fetchPypi
, setuptools
, setuptools-scm
, wheel
, pytestCheckHook
}:
@@ -16,9 +18,13 @@ buildPythonPackage rec {
hash = "sha256-5FZxyug4Wo5iSKmwejqDKAwtDMQxJxMFjPus3F7Jlz4=";
};
nativeBuildInputs = [
setuptools
setuptools-scm
patches = [
# https://github.com/wheerd/multiset/pull/115
(fetchpatch {
name = "relax-setuptools-scm-dependency.patch";
url = "https://github.com/wheerd/multiset/commit/296187b07691c94b783f65504afc580a355abd96.patch";
hash = "sha256-vnZR1cyM/2/JfbLuVOxJuC9oMVVVploUHpbzagmo+AE=";
})
];
postPatch = ''
@@ -26,6 +32,12 @@ buildPythonPackage rec {
sed -i '/python_requires/d' setup.cfg
'';
nativeBuildInputs = [
setuptools
setuptools-scm
wheel
];
pythonImportsCheck = [
"multiset"
];