diff --git a/pkgs/development/python-modules/ddt/default.nix b/pkgs/development/python-modules/ddt/default.nix new file mode 100644 index 000000000000..2fb9e9e990b6 --- /dev/null +++ b/pkgs/development/python-modules/ddt/default.nix @@ -0,0 +1,21 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec { + pname = "ddt"; + version = "1.0.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "e24ecb7e2cf0bf43fa9d4255d3ae2bd0b7ce30b1d1b89ace7aa68aca1152f37a"; + }; + + meta = with stdenv.lib; { + description = "Data-Driven/Decorated Tests, a library to multiply test cases"; + homepage = https://github.com/txels/ddt; + license = licenses.mit; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 9077587eed16..47281cf65632 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2209,22 +2209,7 @@ in { chameleon = callPackage ../development/python-modules/chameleon { }; - ddt = buildPythonPackage (rec { - name = "ddt-1.0.0"; - - src = pkgs.fetchurl { - url = "mirror://pypi/d/ddt/${name}.tar.gz"; - sha256 = "e24ecb7e2cf0bf43fa9d4255d3ae2bd0b7ce30b1d1b89ace7aa68aca1152f37a"; - }; - - meta = { - description = "Data-Driven/Decorated Tests, a library to multiply test cases"; - - homepage = https://github.com/txels/ddt; - - license = licenses.mit; - }; - }); + ddt = callPackage ../development/python-modules/ddt { }; descartes = callPackage ../development/python-modules/descartes { };