diff options
author | Robert Schütz <dev@schuetz-co.de> | 2021-06-25 19:49:20 +0200 |
---|---|---|
committer | Robert Schütz <dev@schuetz-co.de> | 2021-06-25 19:49:27 +0200 |
commit | d1f3d5520ecb3e2b44b4a859fae5285eaf03df79 (patch) | |
tree | ff65cf49f00f75f6f65b8d3b0c6f88282e0442f4 /pkgs/development/python-modules/vilfo-api-client | |
parent | 136fc3cd964a72f633295c24f4915ce47f687277 (diff) | |
download | nixpkgs-d1f3d5520ecb3e2b44b4a859fae5285eaf03df79.tar nixpkgs-d1f3d5520ecb3e2b44b4a859fae5285eaf03df79.tar.gz nixpkgs-d1f3d5520ecb3e2b44b4a859fae5285eaf03df79.tar.bz2 nixpkgs-d1f3d5520ecb3e2b44b4a859fae5285eaf03df79.tar.lz nixpkgs-d1f3d5520ecb3e2b44b4a859fae5285eaf03df79.tar.xz nixpkgs-d1f3d5520ecb3e2b44b4a859fae5285eaf03df79.tar.zst nixpkgs-d1f3d5520ecb3e2b44b4a859fae5285eaf03df79.zip |
python3Packages.vilfo-api-client: init at 0.3.3
Diffstat (limited to 'pkgs/development/python-modules/vilfo-api-client')
-rw-r--r-- | pkgs/development/python-modules/vilfo-api-client/default.nix | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/vilfo-api-client/default.nix b/pkgs/development/python-modules/vilfo-api-client/default.nix new file mode 100644 index 00000000000..cdc01d93a85 --- /dev/null +++ b/pkgs/development/python-modules/vilfo-api-client/default.nix @@ -0,0 +1,51 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, setuptools-scm +, getmac +, requests +, pytestCheckHook +, responses +}: + +buildPythonPackage rec { + pname = "vilfo-api-client"; + version = "0.3.3"; + + src = fetchFromGitHub { + owner = "ManneW"; + repo = "vilfo-api-client-python"; + rev = "v${version}"; + sha256 = "1gy5gpsg99rcm1cc3m30232za00r9i46sp74zpd12p3vzz1wyyqf"; + }; + + postPatch = '' + substituteInPlace setup.cfg \ + --replace "get-mac" "getmac" + ''; + + nativeBuildInputs = [ + setuptools-scm + ]; + + SETUPTOOLS_SCM_PRETEND_VERSION = version; + + propagatedBuildInputs = [ + getmac + requests + ]; + + checkInputs = [ + 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 ]; + }; +} |