pythonPackages.ddt: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-16 13:23:30 -04:00 committed by Frederik Rietdijk
parent 48e807cf9f
commit e1a948388a
2 changed files with 22 additions and 16 deletions

View File

@ -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;
};
}

View File

@ -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 { };