Files
nixpkgs/pkgs/development/python-modules/entry-points-txt/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

40 lines
858 B
Nix

{
lib,
pythonOlder,
pytestCheckHook,
pytest-cov-stub,
hatchling,
fetchFromGitHub,
buildPythonPackage,
}:
buildPythonPackage rec {
pname = "entry-points-txt";
version = "0.3.0";
pyproject = true;
src = fetchFromGitHub {
owner = "jwodder";
repo = "entry-points-txt";
tag = "v${version}";
hash = "sha256-8oGK7aIDgXkCLh/d38hWzfF367KhmggG2s820D2r/EA=";
};
build-system = [ hatchling ];
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
];
pythonImportsCheck = [ "entry_points_txt" ];
meta = {
description = "Read & write entry_points.txt files";
homepage = "https://github.com/jwodder/entry-points-txt";
changelog = "https://github.com/wheelodex/entry-points-txt/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ayazhafiz ];
};
}