depot/third_party/nixpkgs/pkgs/development/python-modules/requests-file/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

44 lines
945 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 = [ ];
};
}