mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
25abd3a680
``` Processing ./mox3-1.1.0-py2-none-any.whl ERROR: Package 'mox3' requires a different Python: 2.7.18 not in '>=3.6' ```
39 lines
806 B
Nix
39 lines
806 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, python
|
|
, subunit
|
|
, testrepository
|
|
, testtools
|
|
, six
|
|
, pbr
|
|
, fixtures
|
|
, isPy36
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mox3";
|
|
version = "1.1.0";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "8a526b7b9b6341f541a9aef3e08c93fd84a5373fe89d4cc51dd571f085b2363c";
|
|
};
|
|
|
|
buildInputs = [ subunit testrepository testtools six ];
|
|
propagatedBuildInputs = [ pbr fixtures ];
|
|
|
|
# Disabling as several tests depdencies are missing:
|
|
# https://opendev.org/openstack/mox3/src/branch/master/test-requirements.txt
|
|
doCheck = false;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Mock object framework for Python";
|
|
homepage = "https://docs.openstack.org/mox3/latest/";
|
|
license = licenses.asl20;
|
|
};
|
|
|
|
}
|