2021-01-17 21:06:30 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-06-01 09:46:46 +02:00
|
|
|
, fetchFromGitHub
|
2021-03-03 23:57:34 +01:00
|
|
|
, setuptools-scm
|
2021-01-17 21:06:30 +01:00
|
|
|
, alarmdecoder
|
2021-06-01 09:46:46 +02:00
|
|
|
, pytestCheckHook
|
2021-01-17 21:06:30 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "adext";
|
2021-06-01 09:41:08 +02:00
|
|
|
version = "0.4.2";
|
2021-01-17 21:06:30 +01:00
|
|
|
|
2021-06-01 09:46:46 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ajschmidt8";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0h5k9kzms2f0r48pdhsgv8pimk0vsxw8vs0k6880mank8ij914wr";
|
2021-01-17 21:06:30 +01:00
|
|
|
};
|
|
|
|
|
2021-06-01 09:46:46 +02:00
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
|
2021-03-03 23:57:34 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
2021-01-17 21:06:30 +01:00
|
|
|
|
2021-03-03 23:57:34 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
alarmdecoder
|
|
|
|
];
|
2021-01-17 21:06:30 +01:00
|
|
|
|
2021-06-01 09:46:46 +02:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2021-01-17 21:06:30 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|