depot/third_party/nixpkgs/pkgs/development/python-modules/requests-file/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

44 lines
963 B
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
setuptools,
setuptools-scm,
pytestCheckHook,
pythonOlder,
requests,
}:
buildPythonPackage rec {
pname = "requests-file";
version = "2.1.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "dashea";
repo = "requests-file";
rev = "refs/tags/${version}";
hash = "sha256-JtdtE44yiw2mLMZ0bJv0QiGWb7f8ywPLF7+BUufh/g4=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [ requests ];
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";
changelog = "https://github.com/dashea/requests-file/blob/${version}/CHANGES.rst";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}