depot/third_party/nixpkgs/pkgs/development/python-modules/pyscaffold/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

109 lines
1.9 KiB
Nix

{ 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
}:
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
];
ds = [
pyscaffoldext-dsproject
];
md = [
pyscaffoldext-markdown
];
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";
mainProgram = "putup";
homepage = "https://pypi.org/project/PyScaffold/";
license = licenses.mit;
maintainers = with maintainers; [ matthewcroughan ];
};
}