mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 03:24:06 +01:00
51 lines
1,001 B
Nix
51 lines
1,001 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
certifi,
|
|
cryptography,
|
|
fetchFromGitHub,
|
|
lxml,
|
|
pyopenssl,
|
|
pytestCheckHook,
|
|
hatchling,
|
|
hatch-vcs,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "signxml";
|
|
version = "4.4.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "XML-Security";
|
|
repo = "signxml";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-BExi8MQ59Vq7+X66fTKjKaSPRAbplQkAT42De/QCpvI=";
|
|
};
|
|
|
|
build-system = [
|
|
hatchling
|
|
hatch-vcs
|
|
];
|
|
|
|
dependencies = [
|
|
certifi
|
|
cryptography
|
|
lxml
|
|
pyopenssl
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "signxml" ];
|
|
|
|
enabledTestPaths = [ "test/test.py" ];
|
|
|
|
meta = {
|
|
description = "Python XML Signature and XAdES library";
|
|
homepage = "https://github.com/XML-Security/signxml";
|
|
changelog = "https://github.com/XML-Security/signxml/blob/${finalAttrs.src.tag}/Changes.rst";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
})
|