at master 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 fetchpatch2, 6 pytestCheckHook, 7 six, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "mohawk"; 13 version = "1.1.0"; 14 pyproject = true; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-0qDjqxCiCcx56V4o8t1UvUpz/RmY/+J7e6D5Yra+lyM="; 19 }; 20 21 patches = [ 22 (fetchpatch2 { 23 # https://github.com/kumar303/mohawk/pull/59 24 name = "nose-to-pytest.patch"; 25 url = "https://github.com/kumar303/mohawk/compare/b7899166880e890f01cf2531b5686094ba08df8f...66157c7efbf6b0d18c30a9ffe5dfd84bef27bd3a.patch"; 26 hash = "sha256-w3sP5XeBqOwoPGsWzYET4djYwuKPaS4OOlC3HBPD0NI="; 27 }) 28 ]; 29 30 build-system = [ setuptools ]; 31 32 dependencies = [ six ]; 33 34 nativeCheckInputs = [ pytestCheckHook ]; 35 36 enabledTestPaths = [ "mohawk/tests.py" ]; 37 38 meta = { 39 description = "Python library for Hawk HTTP authorization"; 40 homepage = "https://github.com/kumar303/mohawk"; 41 license = lib.licenses.mpl20; 42 maintainers = [ ]; 43 }; 44}