4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
39 lines
804 B
Nix
39 lines
804 B
Nix
{ lib, 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 lib; {
|
|
description = "Mock object framework for Python";
|
|
homepage = "https://docs.openstack.org/mox3/latest/";
|
|
license = licenses.asl20;
|
|
};
|
|
|
|
}
|