summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/apt-repo/default.nix
blob: 305960ab59384fcb7a8862a9e82ee4974ec06ce9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
  lib,
  fetchFromGitHub,
  unstableGitUpdater,

  buildPythonPackage,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage {
  pname = "apt-repo";
  version = "0.5-unstable-2023-09-27";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "brennerm";
    repo = "python-apt-repo";
    rev = "0287c59317f9ec8e8edbf7c228665a7010f758e7";
    hash = "sha256-9PA6AIeMXpaDc9g+rYpzwhf4ts3Xb31rvAUgDebTG4A=";
  };
  passthru.updateScript = unstableGitUpdater { };

  build-system = [ setuptools ];

  doCheck = false; # All tests require a network connection

  pythonImportsCheck = [ "apt_repo" ];

  meta = {
    description = "Python library to query APT repositories";
    homepage = "https://github.com/brennerm/python-apt-repo";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ nicoo ];
  };
}