nixpkgs/pkgs/development/python-modules/socksio/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

42 lines
732 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonAtLeast
, flit-core
, pytestCheckHook
}:
let
pname = "socksio";
version = "1.0.0";
in
buildPythonPackage {
inherit pname version;
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-+IvrPaW1w4uYkEad5n0MsPnUlLeLEGyhhF+WwQuRxKw=";
};
nativeBuildInputs = [
flit-core
];
# remove coverage configuration
preCheck = ''
rm pytest.ini
'';
nativeCheckInputs = [
pytestCheckHook
];
meta = with lib; {
description = "Sans-I/O implementation of SOCKS4, SOCKS4A, and SOCKS5";
homepage = "https://github.com/sethmlarson/socksio";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}