python3Packages.flit-scm: Trim dependencies and refactor
This commit is contained in:
parent
ea04a1f38a
commit
de08f0ba6d
@ -2,7 +2,6 @@
|
|||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitLab
|
, fetchFromGitLab
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, git
|
|
||||||
, flit-core
|
, flit-core
|
||||||
, setuptools-scm
|
, setuptools-scm
|
||||||
, tomli
|
, tomli
|
||||||
@ -11,19 +10,37 @@
|
|||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "flit-scm";
|
pname = "flit-scm";
|
||||||
version = "1.7.0";
|
version = "1.7.0";
|
||||||
|
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
src = fetchFromGitLab {
|
src = fetchFromGitLab {
|
||||||
owner = "WillDaSilva";
|
owner = "WillDaSilva";
|
||||||
repo = "flit_scm";
|
repo = "flit_scm";
|
||||||
rev = version;
|
rev = "refs/tags/${version}";
|
||||||
sha256 = "sha256-K5sH+oHgX/ftvhkY+vIg6wUokAP96YxrTWds3tnEtyg=";
|
hash = "sha256-K5sH+oHgX/ftvhkY+vIg6wUokAP96YxrTWds3tnEtyg=";
|
||||||
leaveDotGit = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ flit-core setuptools-scm tomli git ];
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||||
propagatedBuildInputs = [ flit-core setuptools-scm ] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
|
|
||||||
|
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; {
|
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.";
|
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.";
|
||||||
|
Loading…
Reference in New Issue
Block a user