nixpkgs/pkgs/development/python-modules/segno/default.nix
Martin Weinelt 0215034f25 python3.pkgs: Migrate fetchers to use hash
when they already rely on SRI hashes.
2023-03-03 23:59:29 +01:00

35 lines
625 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pypng
, pyzbar
}:
buildPythonPackage rec {
pname = "segno";
version = "1.5.2";
src = fetchFromGitHub {
owner = "heuer";
repo = "segno";
rev = version;
hash = "sha256-+OEXG5OvrZ5Ft7IO/7zodf+SgiRF+frwjltrBENNnHo=";
};
nativeCheckInputs = [
pytestCheckHook
pypng
pyzbar
];
pythonImportsCheck = [ "segno" ];
meta = with lib; {
description = "QR Code and Micro QR Code encoder";
homepage = "https://github.com/heuer/segno/";
license = licenses.bsd3;
maintainers = with maintainers; [ phaer ];
};
}