python3Packages.spdx-tools: 0.6.1 -> 0.7.0a3

This commit is contained in:
Fabian Affolter 2021-10-09 11:52:40 +02:00
parent 291d63f888
commit 6423dc7828

View file

@ -1,39 +1,31 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, click
, fetchPypi , fetchPypi
, fetchpatch
, six
, pyyaml , pyyaml
, rdflib , rdflib
, ply , ply
, xmltodict , xmltodict
, pytestCheckHook , pytestCheckHook
, pythonAtLeast , pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "spdx-tools"; pname = "spdx-tools";
version = "0.6.1"; version = "0.7.0a3";
disabled = pythonOlder "3.6";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "9a1aaae051771e865705dd2fd374c3f73d0ad595c1056548466997551cbd7a81"; sha256 = "sha256-afV1W1n5ubHhqfLFpPO5fxaIy5TaZdw9eDy3JYOJ1oE=";
}; };
patches = lib.optionals (pythonAtLeast "3.9") [
# https://github.com/spdx/tools-python/pull/159
# fixes tests on Python 3.9
(fetchpatch {
name = "drop-encoding-argument.patch";
url = "https://github.com/spdx/tools-python/commit/6c8b9a852f8a787122c0e2492126ee8aa52acff0.patch";
sha256 = "RhvLhexsQRjqYqJg10SAM53RsOW+R93G+mns8C9g5E8=";
})
];
propagatedBuildInputs = [ propagatedBuildInputs = [
six click
ply
pyyaml pyyaml
rdflib rdflib
ply
xmltodict xmltodict
]; ];