Files
nixpkgs/pkgs/development/python-modules/apt-repo/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

37 lines
829 B
Nix

{
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 ];
};
}