e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
45 lines
931 B
Nix
45 lines
931 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, setuptools
|
|
, setuptools-scm
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "setuptools-scm-git-archive";
|
|
version = "1.4.1";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit version;
|
|
pname = "setuptools_scm_git_archive";
|
|
hash = "sha256-xBi8d7OXTTrGXyaPBY8j4B3F+ZHyIzEosOFqad4iewk=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
"tests.py"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"setuptools_scm_git_archive"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "setuptools_scm plugin for git archives";
|
|
homepage = "https://github.com/Changaco/setuptools_scm_git_archive";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.marsam ];
|
|
# https://github.com/Changaco/setuptools_scm_git_archive/pull/22
|
|
broken = versionAtLeast setuptools-scm.version "8";
|
|
};
|
|
}
|