depot/third_party/nixpkgs/pkgs/development/python-modules/pyscaffoldext-cookiecutter/default.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

62 lines
1.2 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, setuptools-scm
, wheel
, cookiecutter
, importlib-metadata
, pyscaffold
, configupdater
, pre-commit
, pytest
, pytest-cov
, pytest-xdist
, tox
, virtualenv
}:
buildPythonPackage rec {
pname = "pyscaffoldext-cookiecutter";
version = "0.1";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-H++p/kPASs3IWk39fCXzq20QmMPGkG0bDTnVAm773cU=";
};
nativeBuildInputs = [
setuptools
setuptools-scm
wheel
];
propagatedBuildInputs = [
cookiecutter
importlib-metadata
pyscaffold
];
passthru.optional-dependencies = {
testing = [
configupdater
pre-commit
pytest
pytest-cov
pytest-xdist
setuptools-scm
tox
virtualenv
];
};
pythonImportsCheck = [ "pyscaffoldext.cookiecutter" ];
meta = with lib; {
description = "Integration of Cookiecutter project templates into PyScaffold (see: https://github.com/cookiecutter/cookiecutter";
homepage = "https://pypi.org/project/pyscaffoldext-cookiecutter/";
license = licenses.mit;
maintainers = with maintainers; [ matthewcroughan ];
};
}