1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5, twisted
6}:
7
8buildPythonPackage rec {
9 pname = "setuptools-trial";
10 version = "0.6.0";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.7";
14
15 src = fetchPypi {
16 pname = "setuptools_trial";
17 inherit version;
18 hash = "sha256-FCIPj3YcSLoeJSbwhxlQd89U+tcJizgs4iBCLw/1mxI=";
19 };
20
21 propagatedBuildInputs = [
22 twisted
23 ];
24
25 # Couldn't get tests working
26 doCheck = false;
27
28 pythonImportsCheck = [
29 "setuptools_trial"
30 ];
31
32 meta = with lib; {
33 description = "Setuptools plugin that makes unit tests execute with trial instead of pyunit";
34 homepage = "https://github.com/rutsky/setuptools-trial";
35 license = licenses.bsd2;
36 maintainers = with maintainers; [ ryansydnor ];
37 };
38}