From e1a948388a434b53a95cceca930ae33070544772 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Tue, 16 Oct 2018 13:23:30 -0400 Subject: [PATCH] pythonPackages.ddt: refactor move to python-modules --- .../python-modules/ddt/default.nix | 21 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 17 +-------------- 2 files changed, 22 insertions(+), 16 deletions(-) create mode 100644 pkgs/development/python-modules/ddt/default.nix 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 { };