mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-28 10:50:15 +00:00
python3Packages.pystrich: init at 0.20
This commit is contained in:
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 ];
|
||||
};
|
||||
}
|
||||
@@ -16284,6 +16284,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