nixpkgs/pkgs/development/python-modules/verlib2/default.nix
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

38 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
versioningit,
}:
buildPythonPackage rec {
pname = "verlib2";
version = "0.3.1";
pyproject = true;
# This tarball doesn't include tests unfortunately, and the GitHub tarball
# could have been an alternative, but versioningit fails to detect the
# version of it correctly, even with setuptools-scm and
# SETUPTOOLS_SCM_PRETEND_VERSION = version added. Since this is a pure Python
# package, we can rely on upstream to run the tests before releasing, and it
# should work for us as well.
src = fetchPypi {
inherit pname version;
hash = "sha256-KGLxlSjbQA0TAlOitxx8NhbuFOHVS/aDO8CSnSzd0UE=";
};
nativeBuildInputs = [
setuptools
versioningit
];
pythonImportsCheck = [ "verlib2" ];
meta = {
description = "Standalone variant of packaging.version, without anything else";
homepage = "https://pypi.org/project/verlib2/";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ doronbehar ];
};
}