2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
|
|
|
wheel,
|
|
|
|
colorama,
|
|
|
|
configupdater,
|
|
|
|
importlib-metadata,
|
|
|
|
packaging,
|
|
|
|
platformdirs,
|
|
|
|
tomlkit,
|
|
|
|
pre-commit,
|
|
|
|
pyscaffoldext-cookiecutter,
|
|
|
|
pyscaffoldext-custom-extension,
|
|
|
|
pyscaffoldext-django,
|
|
|
|
pyscaffoldext-dsproject,
|
|
|
|
pyscaffoldext-markdown,
|
|
|
|
pyscaffoldext-travis,
|
|
|
|
virtualenv,
|
|
|
|
build,
|
|
|
|
certifi,
|
|
|
|
flake8,
|
|
|
|
pytest,
|
|
|
|
pytest-cov,
|
|
|
|
pytest-randomly,
|
|
|
|
pytest-xdist,
|
|
|
|
sphinx,
|
|
|
|
tox,
|
2024-02-29 20:09:43 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyscaffold";
|
|
|
|
version = "4.5";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "PyScaffold";
|
|
|
|
inherit version;
|
|
|
|
hash = "sha256-2En5ouFb3PFl4Z+Wg18LF+Gi1Z1MVhxEW4J6CB3m0mI=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
wheel
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.cfg --replace "platformdirs>=2,<4" "platformdirs"
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
colorama
|
|
|
|
configupdater
|
|
|
|
importlib-metadata
|
|
|
|
packaging
|
|
|
|
platformdirs
|
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
tomlkit
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru.optional-dependencies = {
|
|
|
|
all = [
|
|
|
|
pre-commit
|
|
|
|
pyscaffoldext-cookiecutter
|
|
|
|
pyscaffoldext-custom-extension
|
|
|
|
pyscaffoldext-django
|
|
|
|
pyscaffoldext-dsproject
|
|
|
|
pyscaffoldext-markdown
|
|
|
|
pyscaffoldext-travis
|
|
|
|
virtualenv
|
|
|
|
];
|
2024-06-05 15:53:02 +00:00
|
|
|
ds = [ pyscaffoldext-dsproject ];
|
|
|
|
md = [ pyscaffoldext-markdown ];
|
2024-02-29 20:09:43 +00:00
|
|
|
testing = [
|
|
|
|
build
|
|
|
|
certifi
|
|
|
|
flake8
|
|
|
|
pre-commit
|
|
|
|
pytest
|
|
|
|
pytest-cov
|
|
|
|
pytest-randomly
|
|
|
|
pytest-xdist
|
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
sphinx
|
|
|
|
tomlkit
|
|
|
|
tox
|
|
|
|
virtualenv
|
|
|
|
wheel
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pyscaffold" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Template tool for putting up the scaffold of a Python project";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "putup";
|
2024-02-29 20:09:43 +00:00
|
|
|
homepage = "https://pypi.org/project/PyScaffold/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ matthewcroughan ];
|
|
|
|
};
|
|
|
|
}
|