diff options
| author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2022-05-22 00:12:58 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-22 00:12:58 +0000 |
| commit | 197e220e46da449793e7acc20fbdaba173d7a556 (patch) | |
| tree | 5fa343f5e4eaa0ffb5e969241bcd70a966cf6857 /pkgs/development/python-modules/python-barcode | |
| parent | 62074a54da9060e4586fea0e6ca6d9ed429f9789 (diff) | |
| parent | 3c31489f15d49215529318055864e813c6691357 (diff) | |
Merge master into haskell-updates
Diffstat (limited to 'pkgs/development/python-modules/python-barcode')
| -rw-r--r-- | pkgs/development/python-modules/python-barcode/default.nix | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/python-barcode/default.nix b/pkgs/development/python-modules/python-barcode/default.nix index 7a586c2caed2..165cb5cc5d27 100644 --- a/pkgs/development/python-modules/python-barcode/default.nix +++ b/pkgs/development/python-modules/python-barcode/default.nix @@ -3,29 +3,32 @@ , fetchPypi , pythonOlder , setuptools-scm -, imagesSupport ? false , pillow , pytestCheckHook }: buildPythonPackage rec { pname = "python-barcode"; - version = "0.13.1"; + version = "0.14.0"; format = "setuptools"; disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - sha256 = "sha256-+vukqiTp2Wl3e+UhwpT/GPbCs2rWO1/C8hCNly4jslI="; + sha256 = "sha256-JBs0qlxctqmImIL5QJsBgpA6LF0ZtCGL42Cc271f/fk="; }; propagatedBuildInputs = [ setuptools-scm - ] ++ lib.optionals (imagesSupport) [ - pillow ]; + passthru.extras-require = { + images = [ + pillow + ]; + }; + postPatch = '' substituteInPlace setup.cfg \ --replace "--cov=barcode" "" \ @@ -35,7 +38,7 @@ buildPythonPackage rec { checkInputs = [ pytestCheckHook - ]; + ] ++ passthru.extras-require.images; pythonImportsCheck = [ "barcode" ]; |
