Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

39 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
versioningit,
}:
buildPythonPackage rec {
pname = "verlib2";
version = "0.2.0";
pyproject = true;
# This tarball doesn't include tests unfortuneatly, 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-CrlAh8CU4nFjlI36gXyY1itr3QEibM5RiPjMPNaDRbk=";
};
nativeBuildInputs = [
setuptools
versioningit
];
pythonImportsCheck = [ "verlib2" ];
meta = with lib; {
description = "Standalone variant of packaging.version, without anything else";
homepage = "https://pypi.org/project/verlib2/";
license = licenses.bsd2;
maintainers = with maintainers; [ doronbehar ];
};
}