diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2023-10-12 10:52:47 +0200 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2023-10-12 10:52:47 +0200 |
commit | f3fdf2f8531a0dcf90d63bdddf405f80fbdc98ba (patch) | |
tree | a02805ccea662615d6cdbfc03b783eea017f30c8 /pkgs/development/python-modules/aiowithings | |
parent | 3a388f757b65e3ba73ccd23cc29f20e585c5bc97 (diff) |
python311Packages.aiowithings: init at 0.3.0
Module to interact with Withings https://github.com/joostlek/python-withings
Diffstat (limited to 'pkgs/development/python-modules/aiowithings')
-rw-r--r-- | pkgs/development/python-modules/aiowithings/default.nix | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/aiowithings/default.nix b/pkgs/development/python-modules/aiowithings/default.nix new file mode 100644 index 0000000000000..a55a0b7248d2c --- /dev/null +++ b/pkgs/development/python-modules/aiowithings/default.nix @@ -0,0 +1,60 @@ +{ lib +, aiohttp +, aresponses +, buildPythonPackage +, fetchFromGitHub +, poetry-core +, pytest-asyncio +, pytestCheckHook +, pythonOlder +, syrupy +, yarl +}: + +buildPythonPackage rec { + pname = "aiowithings"; + version = "0.3.0"; + pyproject = true; + + disabled = pythonOlder "3.11"; + + src = fetchFromGitHub { + owner = "joostlek"; + repo = "python-withings"; + rev = "refs/tags/v${version}"; + hash = "sha256-oIFgPO5gmg09QOs94TUTfMAslMI2kpvenyOxQ4SvC/4="; + }; + + postPatch = '' + substituteInPlace pyproject.toml \ + --replace "--cov" "" + ''; + + nativeBuildInputs = [ + poetry-core + ]; + + propagatedBuildInputs = [ + aiohttp + yarl + ]; + + nativeCheckInputs = [ + aresponses + pytest-asyncio + pytestCheckHook + syrupy + ]; + + pythonImportsCheck = [ + "aiowithings" + ]; + + meta = with lib; { + description = "Module to interact with Withings"; + homepage = "https://github.com/joostlek/python-withings"; + changelog = "https://github.com/joostlek/python-withings/releases/tag/v${version}"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} |