2018-10-26 01:40:31 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-08-16 00:05:43 +01:00
|
|
|
, pythonOlder
|
2018-10-26 01:40:31 +01:00
|
|
|
, python
|
|
|
|
, subunit
|
|
|
|
, testrepository
|
|
|
|
, testtools
|
|
|
|
, six
|
|
|
|
, pbr
|
|
|
|
, fixtures
|
|
|
|
, isPy36
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mox3";
|
2020-06-06 07:47:18 +01:00
|
|
|
version = "1.1.0";
|
2020-08-16 00:05:43 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
2018-10-26 01:40:31 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 07:47:18 +01:00
|
|
|
sha256 = "8a526b7b9b6341f541a9aef3e08c93fd84a5373fe89d4cc51dd571f085b2363c";
|
2018-10-26 01:40:31 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ subunit testrepository testtools six ];
|
|
|
|
propagatedBuildInputs = [ pbr fixtures ];
|
|
|
|
|
2019-08-19 15:37:36 +01:00
|
|
|
# Disabling as several tests depdencies are missing:
|
|
|
|
# https://opendev.org/openstack/mox3/src/branch/master/test-requirements.txt
|
|
|
|
doCheck = false;
|
2018-10-26 01:40:31 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Mock object framework for Python";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://docs.openstack.org/mox3/latest/";
|
2018-10-26 01:40:31 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|