Files
nixpkgs/pkgs/development/python-modules/flit-scm/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

46 lines
1006 B
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=";
};
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 = {
description = "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 = lib.licenses.mit;
maintainers = with lib.maintainers; [ cpcloud ];
};
}