2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-06-04 09:07:49 +00:00
|
|
|
, fetchFromGitHub
|
2021-03-09 03:18:52 +00:00
|
|
|
, setuptools-scm
|
2021-02-05 17:12:51 +00:00
|
|
|
, alarmdecoder
|
2021-06-04 09:07:49 +00:00
|
|
|
, pytestCheckHook
|
2021-02-05 17:12:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "adext";
|
2021-06-04 09:07:49 +00:00
|
|
|
version = "0.4.2";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2021-06-04 09:07:49 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ajschmidt8";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0h5k9kzms2f0r48pdhsgv8pimk0vsxw8vs0k6880mank8ij914wr";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
alarmdecoder
|
|
|
|
];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-06-04 09:07:49 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
pythonImportsCheck = [ "adext" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python extension for AlarmDecoder";
|
|
|
|
homepage = "https://github.com/ajschmidt8/adext";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|