python313Packages.alarmdecoder: 1.13.12 -> 1.13.13
Diff: https://github.com/nutechsoftware/alarmdecoder/compare/1.13.12...1.13.13 Changelog: https://github.com/nutechsoftware/alarmdecoder/releases/tag/1.13.13
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
mock,
|
||||
pyftdi,
|
||||
pyopenssl,
|
||||
@@ -9,27 +10,37 @@
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
pyusb,
|
||||
setuptools-scm,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "alarmdecoder";
|
||||
version = "1.13.12";
|
||||
format = "setuptools";
|
||||
disabled = pythonOlder "3.6";
|
||||
version = "1.13.13";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "nutechsoftware";
|
||||
repo = "alarmdecoder";
|
||||
rev = version;
|
||||
hash = "sha256-d9xNXPhFX2TUjnzZlhvqq/YASITBn6lMVTzqi+TPNjI=";
|
||||
tag = version;
|
||||
hash = "sha256-dMOC8znhnCAn4fKSnT9Vw1oGzDRN72d6m8RWD1NQ6Ms=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
name = "use-setuptools_scm.patch";
|
||||
url = "https://github.com/nutechsoftware/alarmdecoder/commit/e9fc6aa76d7925bb61a3c53716f2b6e25c9ca342.patch";
|
||||
hash = "sha256-vt48QfbkcwQmMgJckpawENVMselVx17jrCNKkZ+s95k=";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace test/test_{ad2,devices,messages}.py \
|
||||
--replace-fail assertEquals assertEqual
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
build-system = [ setuptools-scm ];
|
||||
|
||||
dependencies = [
|
||||
pyftdi
|
||||
pyopenssl
|
||||
pyserial
|
||||
@@ -50,6 +61,7 @@ buildPythonPackage rec {
|
||||
pythonImportsCheck = [ "alarmdecoder" ];
|
||||
|
||||
meta = with lib; {
|
||||
changelog = "https://github.com/nutechsoftware/alarmdecoder/releases/tag/${src.tag}";
|
||||
description = "Python interface for the Alarm Decoder (AD2USB, AD2SERIAL and AD2PI) devices";
|
||||
homepage = "https://github.com/nutechsoftware/alarmdecoder";
|
||||
license = licenses.mit;
|
||||
|
||||
Reference in New Issue
Block a user