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
47 lines
946 B
Nix
47 lines
946 B
Nix
{ stdenv
|
|
, lib
|
|
, buildPythonPackage
|
|
, isPyPy
|
|
, fetchPypi
|
|
, pytest
|
|
, setuptools_scm
|
|
, apipkg
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "execnet";
|
|
version = "1.7.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "cacb9df31c9680ec5f95553976c4da484d407e85e41c83cb812aa014f0eddc50";
|
|
};
|
|
|
|
checkInputs = [ pytest ];
|
|
nativeBuildInputs = [ setuptools_scm ];
|
|
propagatedBuildInputs = [ apipkg ];
|
|
|
|
# remove vbox tests
|
|
postPatch = ''
|
|
rm -v testing/test_termination.py
|
|
rm -v testing/test_channel.py
|
|
rm -v testing/test_xspec.py
|
|
rm -v testing/test_gateway.py
|
|
${lib.optionalString isPyPy "rm -v testing/test_multi.py"}
|
|
'';
|
|
|
|
checkPhase = ''
|
|
py.test testing
|
|
'';
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
meta = with lib; {
|
|
description = "Rapid multi-Python deployment";
|
|
license = licenses.gpl2;
|
|
homepage = "https://execnet.readthedocs.io/";
|
|
maintainers = with maintainers; [ nand0p ];
|
|
};
|
|
|
|
}
|