From 1a56d59c6c696ee2bf855de2da5180bcf4d11ef2 Mon Sep 17 00:00:00 2001 From: AndersonTorres Date: Sat, 27 Mar 2021 23:14:58 -0300 Subject: [PATCH] pythonPackages.localimport: init at 1.7.3 --- .../python-modules/localimport/default.nix | 23 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 pkgs/development/python-modules/localimport/default.nix diff --git a/pkgs/development/python-modules/localimport/default.nix b/pkgs/development/python-modules/localimport/default.nix new file mode 100644 index 000000000000..3c41618d5b83 --- /dev/null +++ b/pkgs/development/python-modules/localimport/default.nix @@ -0,0 +1,23 @@ +{ lib +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec { + pname = "localimport"; + version = "1.7.3"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-p7ACOzJRwH9hICMcxtVt/r+twEoFsDxPKGuarFnFIbo="; + }; + + pythonImportsCheck = [ "localimport" ]; + + meta = with lib; { + homepage = "https://github.com/NiklasRosenstein/py-localimport"; + description = "Isolated import of Python modules"; + license = licenses.mit; + maintainers = with maintainers; [ AndersonTorres ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 2875eca59b3a..5edbc7bbff7a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3990,6 +3990,8 @@ in { lmtpd = callPackage ../development/python-modules/lmtpd { }; + localimport = callPackage ../development/python-modules/localimport { }; + localzone = callPackage ../development/python-modules/localzone { }; locket = callPackage ../development/python-modules/locket { };