depot/third_party/nixpkgs/pkgs/development/python-modules/mox3/default.nix
Default email 686ce24904 Project import generated by Copybara.
GitOrigin-RevId: ac1f5b72a9e95873d1de0233fddcb56f99884b37
2023-02-16 18:41:37 +01:00

37 lines
820 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, pythonAtLeast
, subunit
, testrepository
, testtools
, six
, pbr
, fixtures
}:
buildPythonPackage rec {
pname = "mox3";
version = "1.1.0";
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;
};
}