summaryrefslogtreecommitdiffstats
path: root/pkgs/development/python-modules/domeneshop/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/domeneshop/default.nix')
-rw-r--r--pkgs/development/python-modules/domeneshop/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/domeneshop/default.nix b/pkgs/development/python-modules/domeneshop/default.nix
new file mode 100644
index 000000000000..5c55f5adfc38
--- /dev/null
+++ b/pkgs/development/python-modules/domeneshop/default.nix
@@ -0,0 +1,40 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, pythonOlder
+, urllib3
+, pyopenssl
+, cryptography
+, idna
+, certifi
+}:
+
+buildPythonPackage rec {
+ pname = "domeneshop";
+ version = "0.4.2";
+ format = "setuptools";
+
+ disabled = pythonOlder "3.4";
+
+ src = fetchPypi {
+ inherit pname version;
+ sha256 = "tr3wsrscIU66kTz3nlvDHj2EXoEHCH3grD0yD7BU3Fc=";
+ };
+
+ propagatedBuildInputs = [
+ certifi
+ urllib3
+ ] ++ urllib3.optional-dependencies.secure;
+
+ # There are none
+ doCheck = false;
+
+ pythonImportsCheck = [ "domeneshop" ];
+
+ meta = with lib; {
+ description = "Python library for working with the Domeneshop API";
+ homepage = "https://api.domeneshop.no/docs/";
+ license = licenses.mit;
+ maintainers = with maintainers; [ pbsds ];
+ };
+}