mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-08 22:33:52 +00:00
42 lines
896 B
Nix
42 lines
896 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
click,
|
|
fetchFromGitHub,
|
|
parameterized,
|
|
pytestCheckHook,
|
|
setuptools-scm,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "moreorless";
|
|
version = "0.6.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "thatch";
|
|
repo = "moreorless";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-uFcNjQLr/rO2hf2ujWWSsOVxfwgAeIxDZ0yskOfBSe4=";
|
|
};
|
|
|
|
build-system = [ setuptools-scm ];
|
|
|
|
dependencies = [ click ];
|
|
|
|
nativeCheckInputs = [
|
|
parameterized
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "moreorless" ];
|
|
|
|
meta = {
|
|
description = "Wrapper to make difflib.unified_diff more fun to use";
|
|
homepage = "https://github.com/thatch/moreorless/";
|
|
changelog = "https://github.com/thatch/moreorless/releases/tag/${finalAttrs.src.tag}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
})
|