summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/setuptools-trial/default.nix
blob: 48c8d5467c99425c0f1130e9d0b9a3c5bb2586e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
  lib,
  buildPythonPackage,
  fetchPypi,
  setuptools,
  twisted,
}:

buildPythonPackage rec {
  pname = "setuptools-trial";
  version = "0.6.0";
  pyproject = true;

  src = fetchPypi {
    pname = "setuptools_trial";
    inherit version;
    hash = "sha256-FCIPj3YcSLoeJSbwhxlQd89U+tcJizgs4iBCLw/1mxI=";
  };

  nativeBuildInputs = [ setuptools ];

  propagatedBuildInputs = [ twisted ];

  # Couldn't get tests working
  doCheck = false;

  pythonImportsCheck = [ "setuptools_trial" ];

  meta = {
    description = "Setuptools plugin that makes unit tests execute with trial instead of pyunit";
    homepage = "https://github.com/rutsky/setuptools-trial";
    license = lib.licenses.bsd2;
    maintainers = with lib.maintainers; [ ryansydnor ];
  };
}