about summary refs log tree commit diff
path: root/pkgs/development/python-modules/mox3/default.nix
blob: 1228529a0a6d495c4e017d8aebcd0ba311aa2cc1 (plain) (blame)
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
36
37
38
39
40
41
42
43
44
45
46
{
  lib,
  buildPythonPackage,
  fetchPypi,
  pythonOlder,
  pythonAtLeast,
  subunit,
  testrepository,
  testtools,
  six,
  pbr,
  fixtures,
}:

buildPythonPackage rec {
  pname = "mox3";
  version = "1.1.0";
  format = "setuptools";
  disabled = pythonOlder "3.6" || pythonAtLeast "3.11";

  src = fetchPypi {
    inherit pname version;
    sha256 = "8a526b7b9b6341f541a9aef3e08c93fd84a5373fe89d4cc51dd571f085b2363c";
  };

  buildInputs = [
    subunit
    testrepository
    testtools
    six
  ];
  propagatedBuildInputs = [
    pbr
    fixtures
  ];

  # Disabling as several tests dependencies are missing:
  # https://opendev.org/openstack/mox3/src/branch/master/test-requirements.txt
  doCheck = false;

  meta = with lib; {
    description = "Mock object framework for Python";
    homepage = "https://docs.openstack.org/mox3/latest/";
    license = licenses.asl20;
  };
}