1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, untokenize 5, unittestCheckHook 6}: 7 8buildPythonPackage rec { 9 pname = "unify"; 10 version = "0.5"; 11 12 # PyPi release is missing tests (see https://github.com/myint/unify/pull/18) 13 src = fetchFromGitHub { 14 owner = "myint"; 15 repo = "unify"; 16 rev = "v${version}"; 17 sha256 = "1l6xxygaigacsxf0g5f7w5gpqha1ava6mcns81kqqy6vw91pyrbi"; 18 }; 19 20 propagatedBuildInputs = [ untokenize ]; 21 22 nativeCheckInputs = [ unittestCheckHook ]; 23 24 meta = with lib; { 25 description = "Modifies strings to all use the same quote where possible"; 26 homepage = "https://github.com/myint/unify"; 27 license = licenses.mit; 28 maintainers = with maintainers; [ FlorianFranzen ]; 29 }; 30}