2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
53 lines
956 B
Nix
53 lines
956 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, cryptography
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, pyzipper
|
|
, setuptools
|
|
, striprtf
|
|
, wheel
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "xknxproject";
|
|
version = "3.4.1";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "XKNX";
|
|
repo = "xknxproject";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-J257Y8Y0mVtlFHiHju5lxPyV0yx3IAYH8ikbmZlI3fY=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|