depot/third_party/nixpkgs/pkgs/development/python-modules/vilfo-api-client/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

51 lines
979 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools-scm,
getmac,
requests,
semver,
pytestCheckHook,
responses,
}:
buildPythonPackage rec {
pname = "vilfo-api-client";
version = "0.5.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "ManneW";
repo = "vilfo-api-client-python";
rev = "refs/tags/${version}";
hash = "sha256-ZlmriBd+M+54ux/UNYa355mkz808/NxSz7IzmWouA0c=";
};
postPatch = ''
substituteInPlace setup.cfg \
--replace "get-mac" "getmac"
'';
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [
getmac
requests
semver
];
nativeCheckInputs = [
pytestCheckHook
responses
];
pythonImportsCheck = [ "vilfo" ];
meta = with lib; {
description = "Simple wrapper client for the Vilfo router API";
homepage = "https://github.com/ManneW/vilfo-api-client-python";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}