depot/third_party/nixpkgs/pkgs/development/python-modules/unearth/default.nix
Default email 5083ee08a2 Project import generated by Copybara.
GitOrigin-RevId: 10ecda252ce1b3b1d6403caeadbcc8f30d5ab796
2022-09-30 06:47:45 -05:00

54 lines
949 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, cached-property
, packaging
, pdm-pep517
, requests
, flask
, pytest-httpserver
, pytestCheckHook
, requests-wsgi-adapter
, trustme
}:
buildPythonPackage rec {
pname = "unearth";
version = "0.6.1";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-S3v719NKEWc9gN+uf6u/khwTmqx4OD+wyhapDTtTpm4=";
};
nativeBuildInputs = [
pdm-pep517
];
propagatedBuildInputs = [
packaging
requests
] ++ lib.optionals (pythonOlder "3.8") [
cached-property
];
checkInputs = [
flask
pytest-httpserver
pytestCheckHook
requests-wsgi-adapter
trustme
];
meta = with lib; {
homepage = "https://github.com/frostming/unearth";
description = "A utility to fetch and download python packages";
license = licenses.mit;
maintainers = with maintainers; [ betaboon ];
};
}