depot/third_party/nixpkgs/pkgs/development/python-modules/xknxproject/default.nix

47 lines
956 B
Nix
Raw Normal View History

{
lib,
buildPythonPackage,
cryptography,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
pyzipper,
setuptools,
striprtf,
}:
buildPythonPackage rec {
pname = "xknxproject";
version = "3.7.1";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "XKNX";
repo = "xknxproject";
rev = "refs/tags/${version}";
hash = "sha256-/Zg4MYOvbsbJ0zyKuq+gX0PNbm8TyyBMziIaGCq6Lt8=";
};
build-system = [ setuptools ];
dependencies = [
cryptography
pyzipper
striprtf
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "xknxproject" ];
meta = with lib; {
description = "Library to extract KNX projects and parses the underlying XML";
homepage = "https://github.com/XKNX/xknxproject";
changelog = "https://github.com/XKNX/xknxproject/releases/tag/${version}";
license = licenses.gpl2Only;
maintainers = with maintainers; [ fab ];
};
}