Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
951 B · 53 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354{ lib, buildPythonPackage, pythonOlder, fetchPypi, colorama, coverage, unidecode, lxml,}:
buildPythonPackage rec { pname = "green"; version = "4.0.2"; format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi { inherit pname version; hash = "sha256-pAZ8P5/CpkTtNfU2ZJUGQzROxGLm0uu1vXS3YpcVprE="; };
patches = [ ./tests.patch ];
postPatch = '' substituteInPlace green/test/test_integration.py \ --subst-var-by green "$out/bin/green" '';
propagatedBuildInputs = [ colorama coverage unidecode lxml ];
# let green run it's own test suite checkPhase = '' $out/bin/green -tvvv \ green.test.test_version \ green.test.test_cmdline \ '';
pythonImportsCheck = [ "green" ];
meta = with lib; { description = "Python test runner"; homepage = "https://github.com/CleanCut/green"; license = licenses.mit; maintainers = [ ]; };}