diff options
Diffstat (limited to 'pkgs/development/python-modules/pyefergy/default.nix')
-rw-r--r-- | pkgs/development/python-modules/pyefergy/default.nix | 51 |
1 files changed, 28 insertions, 23 deletions
diff --git a/pkgs/development/python-modules/pyefergy/default.nix b/pkgs/development/python-modules/pyefergy/default.nix index 87f2abda0c0b..47e4e41e624f 100644 --- a/pkgs/development/python-modules/pyefergy/default.nix +++ b/pkgs/development/python-modules/pyefergy/default.nix @@ -1,47 +1,52 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, iso4217 -, pytest-asyncio -, pythonOlder -, pytz +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + poetry-dynamic-versioning, + iso4217, + pythonOlder, + pytz, }: buildPythonPackage rec { pname = "pyefergy"; - version = "22.1.1"; - format = "setuptools"; + version = "22.5.0"; + pyproject = true; disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "tkdrob"; - repo = pname; - rev = version; - hash = "sha256-AdoM+PcVoajxhnEfkyN9UuNufChu8XGmZDLNC3mjrps="; + repo = "pyefergy"; + rev = "refs/tags/v${version}"; + hash = "sha256-4M3r/+C42X95/7BGZAJbkXKKFEkGzLlvX0Ynv+eL8qc="; }; - postPatch = '' - # setuptools.extern.packaging.version.InvalidVersion: Invalid version: 'master' - substituteInPlace setup.py \ - --replace 'version="master",' 'version="${version}",' - ''; + build-system = [ + poetry-core + poetry-dynamic-versioning + ]; + + pythonRemoveDeps = [ + "codecov" + "types-pytz" + ]; - propagatedBuildInputs = [ + dependencies = [ aiohttp iso4217 pytz ]; # Tests require network access - doCheck =false; + doCheck = false; - pythonImportsCheck = [ - "pyefergy" - ]; + pythonImportsCheck = [ "pyefergy" ]; meta = with lib; { + changelog = "https://github.com/tkdrob/pyefergy/releases/tag/v${version}"; description = "Python API library for Efergy energy meters"; homepage = "https://github.com/tkdrob/pyefergy"; license = with licenses; [ mit ]; |