pythonPackages.sure: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-27 17:54:42 -04:00
parent e9207374e1
commit e502cd4b3b
No known key found for this signature in database
GPG Key ID: 9ED59B0AB1EAF573
2 changed files with 33 additions and 23 deletions

@ -0,0 +1,32 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, nose
, six
, mock
, pkgs
, isPyPy
}:
buildPythonPackage rec {
pname = "sure";
version = "1.2.24";
disabled = isPyPy;
src = fetchPypi {
inherit pname version;
sha256 = "1lyjq0rvkbv585dppjdq90lbkm6gyvag3wgrggjzyh7cpyh5c12w";
};
LC_ALL="en_US.UTF-8";
buildInputs = [ nose pkgs.glibcLocales ];
propagatedBuildInputs = [ six mock ];
meta = with stdenv.lib; {
description = "Utility belt for automated testing";
homepage = https://falcao.it/sure/;
license = licenses.gpl3Plus;
};
}

@ -3920,29 +3920,7 @@ in {
subunit = callPackage ../development/python-modules/subunit { };
sure = buildPythonPackage rec {
name = "sure-${version}";
version = "1.2.24";
LC_ALL="en_US.UTF-8";
disabled = isPyPy;
src = pkgs.fetchurl {
url = "mirror://pypi/s/sure/${name}.tar.gz";
sha256 = "1lyjq0rvkbv585dppjdq90lbkm6gyvag3wgrggjzyh7cpyh5c12w";
};
buildInputs = with self; [ nose pkgs.glibcLocales ];
propagatedBuildInputs = with self; [ six mock ];
meta = {
description = "Utility belt for automated testing";
homepage = https://falcao.it/sure/;
license = licenses.gpl3Plus;
};
};
sure = callPackage ../development/python-modules/sure { };
structlog = callPackage ../development/python-modules/structlog { };