diff options
author | Chris Ostrouchov <chris.ostrouchov@gmail.com> | 2018-10-26 13:16:32 -0400 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2018-10-27 09:07:24 +0200 |
commit | 6af8b42e17319bcc436546793fcba20497366e4f (patch) | |
tree | 87466486f92e17c0eafa49199f49e66acebfc5d6 /pkgs/development/python-modules/setuptoolstrial | |
parent | 0c5eced78dd49c02186fcf99a0fbdcdf1a07e27a (diff) |
pythonPackages.setuptoolsTrial: refactor move to python-modules
Diffstat (limited to 'pkgs/development/python-modules/setuptoolstrial')
-rw-r--r-- | pkgs/development/python-modules/setuptoolstrial/default.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/setuptoolstrial/default.nix b/pkgs/development/python-modules/setuptoolstrial/default.nix new file mode 100644 index 0000000000000..b393d0eb2003b --- /dev/null +++ b/pkgs/development/python-modules/setuptoolstrial/default.nix @@ -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 ]; + }; + +} |