Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at master 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 click, 5 fetchFromGitHub, 6 parameterized, 7 pytestCheckHook, 8 setuptools-scm, 9}: 10 11buildPythonPackage rec { 12 pname = "moreorless"; 13 version = "0.5.0"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "thatch"; 18 repo = "moreorless"; 19 tag = "v${version}"; 20 hash = "sha256-VCvvPxDWriaeKeRaj/YbPLPfNL7fipGwCydr6K0HMjc="; 21 }; 22 23 build-system = [ setuptools-scm ]; 24 25 dependencies = [ click ]; 26 27 nativeCheckInputs = [ 28 parameterized 29 pytestCheckHook 30 ]; 31 32 pythonImportsCheck = [ "moreorless" ]; 33 34 enabledTestPaths = [ 35 "moreorless/tests/click.py" 36 "moreorless/tests/combined.py" 37 "moreorless/tests/general.py" 38 "moreorless/tests/patch.py" 39 ]; 40 41 meta = { 42 changelog = "https://github.com/thatch/moreorless/releases/tag/${src.tag}"; 43 description = "Wrapper to make difflib.unified_diff more fun to use"; 44 homepage = "https://github.com/thatch/moreorless/"; 45 license = lib.licenses.mit; 46 maintainers = with lib.maintainers; [ fab ]; 47 }; 48}