2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
twisted,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2023-07-15 17:15:38 +00:00
|
|
|
pname = "setuptools-trial";
|
2020-04-24 23:36:52 +00:00
|
|
|
version = "0.6.0";
|
2023-11-16 04:20:00 +00:00
|
|
|
pyproject = true;
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2023-07-15 17:15:38 +00:00
|
|
|
pname = "setuptools_trial";
|
|
|
|
inherit version;
|
|
|
|
hash = "sha256-FCIPj3YcSLoeJSbwhxlQd89U+tcJizgs4iBCLw/1mxI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ twisted ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Couldn't get tests working
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "setuptools_trial" ];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2023-07-15 17:15:38 +00:00
|
|
|
description = "Setuptools plugin that makes unit tests execute with trial instead of pyunit";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/rutsky/setuptools-trial";
|
|
|
|
license = licenses.bsd2;
|
2021-05-20 23:08:51 +00:00
|
|
|
maintainers = with maintainers; [ ryansydnor ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|