3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #196095 from fabaff/freebox-api-bump

python310Packages.freebox-api: 0.0.10 -> 1.0.0
This commit is contained in:
Fabian Affolter 2022-10-15 12:26:16 +02:00 committed by GitHub
commit aa14362c90
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,48 +2,42 @@
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, importlib-metadata
, poetry-core
, pytestCheckHook
, pythonOlder
, urllib3
}:
buildPythonPackage rec {
pname = "freebox-api";
version = "0.0.10";
version = "1.0.0";
format = "pyproject";
disabled = pythonOlder "3.7";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "hacf-fr";
repo = pname;
rev = "v${version}";
sha256 = "sha256-yUcHdSHSgWxZl0z7Ue0MestvGhiXkDsxArNoDk0ZkR4=";
hash = "sha256-y78PzSivB+IJ9hrN3ZRhDBo7kI7M6uleTPkF6slO6So=";
};
patches = [
# Switch to poetry-core, https://github.com/hacf-fr/freebox-api/pull/187
(fetchpatch {
name = "switch-to-poetry-core.patch";
url = "https://github.com/hacf-fr/freebox-api/commit/07356ac65483bc24fb1ed32612e77f2c2eed0134.patch";
sha256 = "1zwricrwsqy01pmhrjy41gh4kxb3gki8z8yxlpywd66y7gid547r";
})
];
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
aiohttp
] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
urllib3
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "freebox_api" ];
pythonImportsCheck = [
"freebox_api"
];
meta = with lib; {
description = "Python module to interact with the Freebox OS API";