diff --git a/pkgs/development/python-modules/progressbar2/default.nix b/pkgs/development/python-modules/progressbar2/default.nix new file mode 100644 index 000000000000..ab2fa895b22e --- /dev/null +++ b/pkgs/development/python-modules/progressbar2/default.nix @@ -0,0 +1,28 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, pytest +, python-utils +}: + +buildPythonPackage (rec { + name = "${pname}-${version}"; + pname = "progressbar2"; + version = "3.12.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "16r21cpjvv0spf4mymgpy7hx6977iy11k44n2w9kipwg4lhwh02k"; + }; + + buildInputs = [ pytest ]; + propagatedBuildInputs = [ python-utils ]; + doCheck = false; + + meta = with stdenv.lib; { + homepage = https://progressbar-2.readthedocs.io/en/latest/; + description = "Text progressbar library for python"; + license = licenses.bsd3; + maintainers = with maintainers; [ ashgillman ]; + }; +}) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index cb012ed84b4b..28cc851121c6 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -14580,28 +14580,7 @@ in { }; }); - progressbar2 = buildPythonPackage (rec { - name = "progressbar2-${version}"; - version = "3.12.0"; - - src = pkgs.fetchFromGitHub { - owner = "WoLpH"; - repo = "python-progressbar"; - rev = "v${version}"; - sha256 = "1gk45sh8cd0kkyvzcvx95z6nlblmyx0x189mjfv3vfa43cr1mb0f"; - }; - - buildInputs = with self; [ pytest ]; - propagatedBuildInputs = with self; [ python-utils ]; - doCheck = false; - - meta = { - homepage = https://progressbar-2.readthedocs.io/en/latest/; - description = "Text progressbar library for python"; - license = licenses.bsd3; - maintainers = with maintainers; [ ashgillman ]; - }; - }); + progressbar2 = callPackage ../development/python-modules/progressbar2 { }; ldap = callPackage ../development/python-modules/ldap { inherit (pkgs) openldap cyrus_sasl openssl;