mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
400212a902
The fetcher params were changed in the previous commit (de08f0ba6d
),
but the hash wasn't updated.
52 lines
1.0 KiB
Nix
52 lines
1.0 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitLab
|
|
, pythonOlder
|
|
, flit-core
|
|
, setuptools-scm
|
|
, tomli
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "flit-scm";
|
|
version = "1.7.0";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "WillDaSilva";
|
|
repo = "flit_scm";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-2nx9kWq/2TzauOW+c67g9a3JZ2dhBM4QzKyK/sqWOPo=";
|
|
};
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
nativeBuildInputs = [
|
|
flit-core
|
|
setuptools-scm
|
|
] ++ lib.optionals (pythonOlder "3.11") [
|
|
tomli
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
flit-core
|
|
setuptools-scm
|
|
] ++ lib.optionals (pythonOlder "3.11") [
|
|
tomli
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"flit_scm"
|
|
];
|
|
|
|
|
|
doCheck = false; # no tests
|
|
|
|
meta = with lib; {
|
|
description = "A PEP 518 build backend that uses setuptools_scm to generate a version file from your version control system, then flit to build the package.";
|
|
homepage = "https://gitlab.com/WillDaSilva/flit_scm";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ cpcloud ];
|
|
};
|
|
}
|