nixpkgs/pkgs/development/python-modules/requests-file/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

39 lines
707 B
Nix

{ lib
, fetchPypi
, buildPythonPackage
, pytestCheckHook
, requests
, six
}:
buildPythonPackage rec {
pname = "requests-file";
version = "1.5.1";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-B9dCCNM4nQHDirie9AOvDP7GOVfVOgCB2OynONAkfY4=";
};
propagatedBuildInputs = [
requests
six
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"requests_file"
];
meta = with lib; {
description = "Transport adapter for fetching file:// URLs with the requests python library";
homepage = "https://github.com/dashea/requests-file";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}