pythonPackages.setuptoolsTrial: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-26 13:16:32 -04:00 committed by Frederik Rietdijk
parent 0c5eced78d
commit 6af8b42e17
2 changed files with 39 additions and 25 deletions

View File

@ -0,0 +1,38 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, pytest
, virtualenv
, pytestrunner
, pytest-virtualenv
, twisted
, pathlib2
}:
buildPythonPackage rec {
pname = "setuptools_trial";
version = "0.6.0";
src = fetchPypi {
inherit pname version;
sha256 = "14220f8f761c48ba1e2526f087195077cf54fad7098b382ce220422f0ff59b12";
};
buildInputs = [ pytest virtualenv pytestrunner pytest-virtualenv ];
propagatedBuildInputs = [ twisted pathlib2 ];
postPatch = ''
sed -i '12,$d' tests/test_main.py
'';
# Couldn't get tests working
doCheck = false;
meta = with stdenv.lib; {
description = "Setuptools plugin that makes unit tests execute with trial instead of pyunit.";
homepage = "https://github.com/rutsky/setuptools-trial";
license = licenses.bsd2;
maintainers = with maintainers; [ ryansydnor nand0p ];
};
}

View File

@ -3710,31 +3710,7 @@ in {
setuptoolsDarcs = callPackage ../development/python-modules/setuptoolsdarcs { }; setuptoolsDarcs = callPackage ../development/python-modules/setuptoolsdarcs { };
setuptoolsTrial = buildPythonPackage rec { setuptoolsTrial = callPackage ../development/python-modules/setuptoolstrial { };
name = "${pname}-${version}";
pname = "setuptools_trial";
version = "0.6.0";
src = pkgs.fetchurl {
url = "mirror://pypi/s/${pname}/${name}.tar.gz";
sha256 = "14220f8f761c48ba1e2526f087195077cf54fad7098b382ce220422f0ff59b12";
};
buildInputs = with self; [ pytest virtualenv pytestrunner pytest-virtualenv ];
propagatedBuildInputs = with self; [ twisted pathlib2 ];
postPatch = ''
sed -i '12,$d' tests/test_main.py
'';
# Couldn't get tests working
doCheck = false;
meta = {
description = "Setuptools plugin that makes unit tests execute with trial instead of pyunit.";
homepage = "https://github.com/rutsky/setuptools-trial";
license = licenses.bsd2;
maintainers = with maintainers; [ ryansydnor nand0p ];
platforms = platforms.all;
};
};
shippai = callPackage ../development/python-modules/shippai {}; shippai = callPackage ../development/python-modules/shippai {};