Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667{ lib, stdenv, python, buildPythonPackage, fetchFromGitHub, setuptools, pytestCheckHook, pythonAtLeast, writableTmpDirAsHomeHook, pkgs,}:let inherit (pkgs) bash git less;in
buildPythonPackage rec { pname = "icdiff"; version = "2.0.10"; pyproject = true;
src = fetchFromGitHub { owner = "jeffkaufman"; repo = "icdiff"; tag = "release-${version}"; hash = "sha256-7/EvuHNWE9kdb35TFuqT8ShjyciodsRNkBMG0WvTy1c="; };
patches = [ ./0001-Don-t-test-black-or-flake8.patch ];
build-system = [ setuptools ];
pythonImportsCheck = [ "icdiff" ];
nativeCheckInputs = [ bash git less writableTmpDirAsHomeHook ];
# Before the wheel gets created, fix up the shebangs. preBuild = '' patchShebangs test.sh icdiff git-icdiff '';
# Odd behavior in the sandbox doCheck = !stdenv.hostPlatform.isDarwin;
checkPhase = '' runHook preCheck
./test.sh ${python.interpreter}
runHook postCheck '';
meta = { description = "Improved colorized diff"; homepage = "https://github.com/jeffkaufman/icdiff"; changelog = "https://github.com/jeffkaufman/icdiff/releases/tag/release-${version}/CHANGELOG.md"; license = lib.licenses.psfl; mainProgram = "icdiff"; maintainers = with lib.maintainers; [ philiptaron ]; };}