From fd189dcd25d96df676d41b3a19ab587bef5eaa6f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 21 May 2022 12:16:44 +0200 Subject: [PATCH] python310Packages.dremel3dpy: init at 0.3.4 --- .../python-modules/dremel3dpy/default.nix | 50 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 52 insertions(+) create mode 100644 pkgs/development/python-modules/dremel3dpy/default.nix diff --git a/pkgs/development/python-modules/dremel3dpy/default.nix b/pkgs/development/python-modules/dremel3dpy/default.nix new file mode 100644 index 000000000000..06de83a778ae --- /dev/null +++ b/pkgs/development/python-modules/dremel3dpy/default.nix @@ -0,0 +1,50 @@ +{ lib +, async-timeout +, buildPythonPackage +, fetchPypi +, pythonOlder +, requests +, urllib3 +, validators +, yarl +}: + +buildPythonPackage rec { + pname = "dremel3dpy"; + version = "0.3.4"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-zKbHKdgMx76cYGPvPVSm39si0LfyDA4L1CcKaQzEpCw="; + }; + + propagatedBuildInputs = [ + async-timeout + requests + urllib3 + validators + yarl + ]; + + postPatch = '' + # Ignore the pinning + sed -i -e "s/==[0-9.]*//" setup.py + ''; + + # Module has no tests + doCheck = false; + + pythonImportsCheck = [ + "dremel3dpy" + ]; + + meta = with lib; { + description = "Module for interacting with Dremel 3D printers"; + homepage = "https://github.com/godely/dremel3dpy"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7cbb08c74360..62a704ad890a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2528,6 +2528,8 @@ in { dragonfly = callPackage ../development/python-modules/dragonfly { }; + dremel3dpy = callPackage ../development/python-modules/dremel3dpy { }; + drf-jwt = callPackage ../development/python-modules/drf-jwt { }; drf-nested-routers = callPackage ../development/python-modules/drf-nested-routers { };