mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 22:43:01 +00:00
python312Packages.python-smarttub: modernize
This commit is contained in:
parent
aea2b6e78b
commit
7ca2b22e03
@ -10,23 +10,26 @@
|
||||
pytestCheckHook,
|
||||
python-dateutil,
|
||||
pythonOlder,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-smarttub";
|
||||
version = "0.0.38";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mdz";
|
||||
repo = pname;
|
||||
repo = "python-smarttub";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-ErGBOO5aes4Avmt2M6rkZPmjwsCMZdNnLhMDYhlULzU=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
aiohttp
|
||||
inflection
|
||||
pyjwt
|
||||
@ -39,14 +42,10 @@ buildPythonPackage rec {
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "pyjwt~=2.1.0" "pyjwt>=2.1.0"
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "smarttub" ];
|
||||
|
||||
meta = with lib; {
|
||||
changelog = "https://github.com/mdz/python-smarttub/releases/tag/v${version}";
|
||||
description = "Python API for SmartTub enabled hot tubs";
|
||||
homepage = "https://github.com/mdz/python-smarttub";
|
||||
license = with licenses; [ mit ];
|
||||
|
Loading…
Reference in New Issue
Block a user