Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.6 kB · 85 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586{ lib, buildPythonPackage, fetchPypi, isPyPy, bash, setuptools, pytestCheckHook, pytest-cov-stub, pytest-mock, freezegun, git, jinja2, binaryornot, click, jinja2-time, requests, python-slugify, pyyaml, arrow, rich,}:
buildPythonPackage rec { pname = "cookiecutter"; version = "2.6.0"; pyproject = true;
# not sure why this is broken disabled = isPyPy;
src = fetchPypi { inherit pname version; hash = "sha256-2yH4Fp6k9P3CQI1IykSFk0neJkf75JSp1sPt/AVCwhw="; };
postPatch = '' patchShebangs tests/test-pyshellhooks/hooks tests/test-shellhooks/hooks
substituteInPlace tests/test_hooks.py \ --replace-fail "/bin/bash" "${lib.getExe bash}" '';
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook pytest-cov-stub pytest-mock freezegun git ];
dependencies = [ binaryornot jinja2 click pyyaml jinja2-time python-slugify requests arrow rich ];
pythonImportsCheck = [ "cookiecutter.main" ];
preCheck = '' export HOME="$(mktemp -d)" '';
disabledTests = [ # messes with $PYTHONPATH "test_should_invoke_main" ];
meta = with lib; { homepage = "https://github.com/audreyr/cookiecutter"; changelog = "https://github.com/cookiecutter/cookiecutter/blob/${version}/HISTORY.md"; description = "Command-line utility that creates projects from project templates"; mainProgram = "cookiecutter"; license = licenses.bsd3; maintainers = with maintainers; [ kragniz ]; };}