Fabian Affolter 2023-06-09 18:42:17 +02:00
parent a175ac6ba8
commit c00a24332c

View file

@ -1,20 +1,23 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, asynctest
, pytest-asyncio , pytest-asyncio
, pytestCheckHook , pytestCheckHook
, pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "dynalite-devices"; pname = "dynalite-devices";
version = "0.47"; version = "0.1.48";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ziv1234"; owner = "ziv1234";
repo = "python-dynalite-devices"; repo = "python-dynalite-devices";
rev = "refs/tags/v${version}"; # https://github.com/ziv1234/python-dynalite-devices/issues/2 rev = "refs/tags/v${version}";
hash = "sha256-kJo4e5vhgWzijLUhQd9VBVk1URpg9SXhOA60dJYashM="; hash = "sha256-i88aIsRNsToSceQdwfspJg+Y5MO5zC4O6EkyhrYR27g=";
}; };
postPatch = '' postPatch = ''
@ -22,7 +25,6 @@ buildPythonPackage rec {
''; '';
nativeCheckInputs = [ nativeCheckInputs = [
asynctest
pytest-asyncio pytest-asyncio
pytestCheckHook pytestCheckHook
]; ];
@ -31,11 +33,14 @@ buildPythonPackage rec {
"--asyncio-mode=auto" "--asyncio-mode=auto"
]; ];
pythonImportsCheck = [ "dynalite_devices_lib" ]; pythonImportsCheck = [
"dynalite_devices_lib"
];
meta = with lib; { meta = with lib; {
description = "An unofficial Dynalite DyNET interface creating devices"; description = "An unofficial Dynalite DyNET interface creating devices";
homepage = "https://github.com/ziv1234/python-dynalite-devices"; homepage = "https://github.com/ziv1234/python-dynalite-devices";
changelog = "https://github.com/ziv1234/python-dynalite-devices/releases/tag/v${version}";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ dotlambda ]; maintainers = with maintainers; [ dotlambda ];
}; };