python3Packages.spdx-tools: fix tests (#438427)
This commit is contained in:
@@ -4,10 +4,10 @@
|
||||
buildPythonPackage,
|
||||
click,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
license-expression,
|
||||
ply,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
pyyaml,
|
||||
rdflib,
|
||||
semantic-version,
|
||||
@@ -20,9 +20,7 @@
|
||||
buildPythonPackage rec {
|
||||
pname = "spdx-tools";
|
||||
version = "0.8.3";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "spdx";
|
||||
@@ -31,12 +29,21 @@ buildPythonPackage rec {
|
||||
hash = "sha256-r7+RYGoq3LJYN1jYfwzb1r3fc/kL+CPd4pmGATFq8Pw=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
patches = [
|
||||
# https://github.com/spdx/tools-python/issues/844
|
||||
(fetchpatch {
|
||||
name = "beartype-0.20-compat.patch";
|
||||
url = "https://github.com/spdx/tools-python/pull/841/commits/3b13bd5af36a2b78f5c87fdbadc3f2601d2dcd8d.patch";
|
||||
hash = "sha256-8sQNGRss4R1olsw+xGps3NICyimBxKv47TaSrCcnVhA=";
|
||||
})
|
||||
];
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
beartype
|
||||
click
|
||||
license-expression
|
||||
|
||||
Reference in New Issue
Block a user