nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 packaging,
6 pdm-backend,
7 httpx,
8 flask,
9 pytest-httpserver,
10 pytest-mock,
11 pytestCheckHook,
12 requests-wsgi-adapter,
13 trustme,
14}:
15
16buildPythonPackage rec {
17 pname = "unearth";
18 version = "0.18.2";
19 pyproject = true;
20
21 src = fetchPypi {
22 inherit pname version;
23 hash = "sha256-HlPX9S9G3V+HXnf/HFWxJHfiFaCS5LZsl2SnffSptSA=";
24 };
25
26 build-system = [ pdm-backend ];
27
28 dependencies = [
29 packaging
30 httpx
31 ];
32
33 __darwinAllowLocalNetworking = true;
34
35 nativeCheckInputs = [
36 flask
37 pytest-httpserver
38 pytest-mock
39 pytestCheckHook
40 requests-wsgi-adapter
41 trustme
42 ];
43
44 pythonImportsCheck = [ "unearth" ];
45
46 meta = {
47 description = "Utility to fetch and download Python packages";
48 mainProgram = "unearth";
49 homepage = "https://github.com/frostming/unearth";
50 changelog = "https://github.com/frostming/unearth/releases/tag/${version}";
51 license = lib.licenses.mit;
52 maintainers = with lib.maintainers; [ betaboon ];
53 };
54}