mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-19 11:23:29 +00:00
python311Packages.verlib2: init at 0.2.0
This commit is contained in:
parent
b6401f808a
commit
8a2ad95413
37
pkgs/development/python-modules/verlib2/default.nix
Normal file
37
pkgs/development/python-modules/verlib2/default.nix
Normal file
@ -0,0 +1,37 @@
|
||||
{ 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 = "A standalone variant of packaging.version, without anything else";
|
||||
homepage = "https://pypi.org/project/verlib2/";
|
||||
license = licenses.bsd2;
|
||||
maintainers = with maintainers; [ doronbehar ];
|
||||
};
|
||||
}
|
@ -16144,6 +16144,8 @@ self: super: with self; {
|
||||
|
||||
verboselogs = callPackage ../development/python-modules/verboselogs { };
|
||||
|
||||
verlib2 = callPackage ../development/python-modules/verlib2 { };
|
||||
|
||||
versioneer = callPackage ../development/python-modules/versioneer { };
|
||||
|
||||
versionfinder = callPackage ../development/python-modules/versionfinder { };
|
||||
|
Loading…
Reference in New Issue
Block a user