nixpkgs/pkgs/development/python-modules/mox3/default.nix
Alyssa Ross f6ba6620ea
python311.pkgs.mox3: disable
Uses APIs removed in Python 3.11, for example this exception in
aprslib's tests:

	E           AttributeError: module 'inspect' has no attribute 'getargspec'

	/nix/store/x6ps6s9k2i1dcnb9jf1kbfgghgf6k53f-python3.11-mox3-1.1.0/lib/python3.11/site-packages/mox3/mox.py:909: AttributeError

Unmaintained upstream.
2023-02-13 20:32:30 +00: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;
};
}