From e5f77fb6ba63b2d362b563b80c17db8921f4447e Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Tue, 16 Jul 2019 16:36:04 -0400 Subject: [PATCH] pythonPackages.glob2: init at 0.7 needed for poetry python 2.7 support --- .../python-modules/glob2/default.nix | 26 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/development/python-modules/glob2/default.nix diff --git a/pkgs/development/python-modules/glob2/default.nix b/pkgs/development/python-modules/glob2/default.nix new file mode 100644 index 000000000000..bce69bffff2f --- /dev/null +++ b/pkgs/development/python-modules/glob2/default.nix @@ -0,0 +1,26 @@ +{ lib +, buildPythonPackage +, fetchPypi +, python +}: + +buildPythonPackage rec { + pname = "glob2"; + version = "0.7"; + + src = fetchPypi { + inherit pname version; + sha256 = "135bj8gm6vn45vv0phrvhyir36kfm17y7kmasxinv8lagk8dphw5"; + }; + + checkPhase = '' + ${python.interpreter} test.py + ''; + + meta = with lib; { + description = "Version of the glob module that can capture patterns and supports recursive wildcards"; + homepage = https://github.com/miracle2k/python-glob2/; + license = licenses.bsd3; + maintainers = [ maintainers.costrouc ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 6e20f12f9571..bdc8496e2d3b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -586,6 +586,8 @@ in { glymur = callPackage ../development/python-modules/glymur { }; + glob2 = callPackage ../development/python-modules/glob2 { }; + glom = callPackage ../development/python-modules/glom { }; goocalendar = callPackage ../development/python-modules/goocalendar { };