mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
python3Packages.vcs-versioning: init at 1.1.1
This commit is contained in:
parent
a03725a6c6
commit
d00eb26967
2 changed files with 62 additions and 0 deletions
60
pkgs/development/python-modules/vcs-versioning/default.nix
Normal file
60
pkgs/development/python-modules/vcs-versioning/default.nix
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
packaging,
|
||||
setuptools,
|
||||
git,
|
||||
pytestCheckHook,
|
||||
vcs-versioning,
|
||||
}:
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "vcs-versioning";
|
||||
version = "1.1.1";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pypa";
|
||||
repo = "setuptools-scm";
|
||||
tag = "vcs-versioning-v${finalAttrs.version}";
|
||||
hash = "sha256-CfRzupWFtvmQLbubyr+eXRnLi4auZc2PA/Zz0aFNgaU=";
|
||||
};
|
||||
|
||||
env.SETUPTOOLS_SCM_PRETEND_VERSION = finalAttrs.version;
|
||||
|
||||
postPatch = ''
|
||||
pushd vcs-versioning
|
||||
'';
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
packaging
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"vcs_versioning"
|
||||
];
|
||||
|
||||
doCheck = false; # infinite recursion with pytest
|
||||
|
||||
nativeCheckInputs = [
|
||||
git
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pytestFlags = [ "-vvv" ];
|
||||
|
||||
passthru.tests.pytest = vcs-versioning.overridePythonAttrs { doCheck = true; };
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/pypa/setuptools-scm/releases/tag/${finalAttrs.src.tag}";
|
||||
description = "The blessed package to manage your versions by scm tags";
|
||||
homepage = "https://github.com/pypa/setuptools-scm/tree/main/vcs-versioning";
|
||||
license = lib.licenses.mit;
|
||||
teams = [ lib.teams.python ];
|
||||
};
|
||||
})
|
||||
|
|
@ -21069,6 +21069,8 @@ self: super: with self; {
|
|||
|
||||
vcrpy = callPackage ../development/python-modules/vcrpy { };
|
||||
|
||||
vcs-versioning = callPackage ../development/python-modules/vcs-versioning { };
|
||||
|
||||
vcversioner = callPackage ../development/python-modules/vcversioner { };
|
||||
|
||||
vdf = callPackage ../development/python-modules/vdf { };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue