2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-26 18:16:32 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
|
|
|
, virtualenv
|
2021-07-20 22:07:53 +01:00
|
|
|
, pytest-runner
|
2018-10-26 18:16:32 +01:00
|
|
|
, pytest-virtualenv
|
|
|
|
, twisted
|
|
|
|
, pathlib2
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "setuptools_trial";
|
|
|
|
version = "0.6.0";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "14220f8f761c48ba1e2526f087195077cf54fad7098b382ce220422f0ff59b12";
|
|
|
|
};
|
|
|
|
|
2021-07-20 22:07:53 +01:00
|
|
|
buildInputs = [ pytest virtualenv pytest-runner pytest-virtualenv ];
|
2018-10-26 18:16:32 +01:00
|
|
|
propagatedBuildInputs = [ twisted pathlib2 ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i '12,$d' tests/test_main.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Couldn't get tests working
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-26 18:16:32 +01:00
|
|
|
description = "Setuptools plugin that makes unit tests execute with trial instead of pyunit.";
|
|
|
|
homepage = "https://github.com/rutsky/setuptools-trial";
|
|
|
|
license = licenses.bsd2;
|
2021-05-14 15:00:41 +01:00
|
|
|
maintainers = with maintainers; [ ryansydnor ];
|
2018-10-26 18:16:32 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|