depot/third_party/nixpkgs/pkgs/development/python-modules/unearth/default.nix
Default email c7f94ff3ce Project import generated by Copybara.
GitOrigin-RevId: b85ed9dcbf187b909ef7964774f8847d554fab3b
2023-08-22 22:05:09 +02:00

60 lines
1.1 KiB
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.9.2";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-hF9LVzOHTOO0JyEm3kluq+AKSa1nj90E1ILR533u1CU=";
};
nativeBuildInputs = [
pdm-pep517
];
propagatedBuildInputs = [
packaging
requests
] ++ lib.optionals (pythonOlder "3.8") [
cached-property
];
__darwinAllowLocalNetworking = true;
nativeCheckInputs = [
flask
pytest-httpserver
pytestCheckHook
requests-wsgi-adapter
trustme
];
pythonImportsCheck = [
"unearth"
];
meta = with lib; {
description = "A utility to fetch and download Python packages";
homepage = "https://github.com/frostming/unearth";
changelog = "https://github.com/frostming/unearth/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ betaboon ];
};
}