blob: 534391757d0c0619fee38dc4c39ffa1acc66a4a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
{
lib,
buildPythonPackage,
fetchPypi,
setuptools-scm,
pillow,
pytestCheckHook,
pytest-cov-stub,
}:
buildPythonPackage rec {
pname = "python-barcode";
version = "0.15.1";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-Oxgl+9sR5ZdGbf9ChrTqmx6GpXcXtZ5WOuZ5cm/IVN4=";
};
propagatedBuildInputs = [ setuptools-scm ];
optional-dependencies = {
images = [ pillow ];
};
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
]
++ optional-dependencies.images;
pythonImportsCheck = [ "barcode" ];
meta = {
description = "Create standard barcodes with Python";
mainProgram = "python-barcode";
homepage = "https://github.com/WhyNotHugo/python-barcode";
changelog = "https://github.com/WhyNotHugo/python-barcode/blob/v${version}/docs/changelog.rst";
license = lib.licenses.mit;
maintainers = [ ];
};
}
|