mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 13:30:36 +00:00
python3Packages.pystrich: init at 0.20 (#548754)
This commit is contained in:
@@ -19342,6 +19342,12 @@
|
||||
githubId = 708570;
|
||||
name = "Manuel Mendez";
|
||||
};
|
||||
mmulqueen = {
|
||||
email = "michael@mulqueen.me.uk";
|
||||
github = "mmulqueen";
|
||||
githubId = 6616321;
|
||||
name = "Michael Mulqueen";
|
||||
};
|
||||
mmusnjak = {
|
||||
email = "marko.musnjak@gmail.com";
|
||||
github = "mmusnjak";
|
||||
|
||||
65
pkgs/development/python-modules/pystrich/default.nix
Normal file
65
pkgs/development/python-modules/pystrich/default.nix
Normal file
@@ -0,0 +1,65 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
hatchling,
|
||||
pillow,
|
||||
typing-extensions,
|
||||
pytestCheckHook,
|
||||
ezdxf,
|
||||
fonttools,
|
||||
hypothesis,
|
||||
zxing-cpp,
|
||||
dmtx-utils,
|
||||
librsvg,
|
||||
ghostscript,
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pystrich";
|
||||
version = "0.20";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mmulqueen";
|
||||
repo = "pyStrich";
|
||||
tag = version;
|
||||
hash = "sha256-08IKFJfcK0I+phUejUY7FHh2a7efR+UKrj+tsKEwSJ4=";
|
||||
};
|
||||
|
||||
build-system = [ hatchling ];
|
||||
|
||||
dependencies = [
|
||||
pillow
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
optional-dependencies = {
|
||||
png = [ pillow ];
|
||||
};
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
ezdxf
|
||||
fonttools
|
||||
hypothesis
|
||||
zxing-cpp
|
||||
dmtx-utils
|
||||
librsvg
|
||||
ghostscript
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "pystrich" ];
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
description = "Pure-Python module to generate 1D and 2D barcodes";
|
||||
homepage = "https://github.com/mmulqueen/pyStrich";
|
||||
changelog = "https://github.com/mmulqueen/pyStrich/releases/tag/${version}";
|
||||
license = lib.licenses.asl20;
|
||||
mainProgram = "pystrich";
|
||||
maintainers = with lib.maintainers; [ mmulqueen ];
|
||||
};
|
||||
}
|
||||
@@ -16288,6 +16288,10 @@ self: super: with self; {
|
||||
|
||||
pystray = callPackage ../development/python-modules/pystray { };
|
||||
|
||||
pystrich = callPackage ../development/python-modules/pystrich {
|
||||
inherit (pkgs) ghostscript;
|
||||
};
|
||||
|
||||
pysubs2 = callPackage ../development/python-modules/pysubs2 { };
|
||||
|
||||
pysuezv2 = callPackage ../development/python-modules/pysuezv2 { };
|
||||
|
||||
Reference in New Issue
Block a user