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

54 lines
956 B
Nix

{ lib
, buildPythonPackage
, cryptography
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, pyzipper
, setuptools
, striprtf
, wheel
}:
buildPythonPackage rec {
pname = "xknxproject";
version = "3.3.0";
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "XKNX";
repo = "xknxproject";
rev = "refs/tags/${version}";
hash = "sha256-RH5RQHLpfrI9fRg6OfPZ7/BPHQuHCrkJlwW/EJitdPo=";
};
nativeBuildInputs = [
setuptools
wheel
];
propagatedBuildInputs = [
cryptography
pyzipper
striprtf
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"xknxproject"
];
meta = with lib; {
description = "ETS project parser";
homepage = "https://github.com/XKNX/xknxproject";
changelog = "https://github.com/XKNX/xknxproject/releases/tag/${version}";
license = licenses.gpl2Only;
maintainers = with maintainers; [ fab ];
};
}