depot/third_party/nixpkgs/pkgs/development/python-modules/flit-scm/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

43 lines
1,004 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 = with lib; {
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 = licenses.mit;
maintainers = with maintainers; [ cpcloud ];
};
}