diff --git a/pkgs/development/python-modules/wrapt/default.nix b/pkgs/development/python-modules/wrapt/default.nix new file mode 100644 index 000000000000..badecc776d75 --- /dev/null +++ b/pkgs/development/python-modules/wrapt/default.nix @@ -0,0 +1,23 @@ +{ lib +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec { + pname = "wrapt"; + version = "1.10.11"; + + # No tests in archive + doCheck = false; + + src = fetchPypi { + inherit pname version; + sha256 = "d4d560d479f2c21e1b5443bbd15fe7ec4b37fe7e53d335d3b9b0a7b1226fe3c6"; + }; + + meta = { + description = "Module for decorators, wrappers and monkey patching"; + license = lib.licenses.bsd2; + homepage = https://github.com/GrahamDumpleton/wrapt; + }; +} \ No newline at end of file diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 26493fce9f25..2fed7a0a1c90 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -11822,18 +11822,7 @@ in { doc8 = callPackage ../development/python-modules/doc8 { }; - wrapt = buildPythonPackage rec { - name = "wrapt-${version}"; - version = "1.10.5"; - - # No tests in archive - doCheck = false; - - src = pkgs.fetchurl { - url = "mirror://pypi/w/wrapt/${name}.tar.gz"; - sha256 = "0cq8rlpzkxzk48b50yrfhzn1d1hrq4gjcdqlrgq4v5palgiv9jwr"; - }; - }; + wrapt = callPackage ../development/python-modules/wrapt { }; pagerduty = buildPythonPackage rec { name = "pagerduty-${version}";