depot/third_party/nixpkgs/pkgs/development/python-modules/xknxproject/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

46 lines
956 B
Nix

{
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 ];
};
}