Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 mock, 6 nose, 7 pytest, 8 six, 9}: 10 11buildPythonPackage rec { 12 pname = "mohawk"; 13 version = "1.1.0"; 14 format = "setuptools"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "08wppsv65yd0gdxy5zwq37yp6jmxakfz4a2yx5wwq2d222my786j"; 19 }; 20 21 propagatedBuildInputs = [ six ]; 22 23 nativeCheckInputs = [ 24 mock 25 nose 26 pytest 27 ]; 28 29 checkPhase = '' 30 pytest mohawk/tests.py 31 ''; 32 33 meta = { 34 description = "Python library for Hawk HTTP authorization"; 35 homepage = "https://github.com/kumar303/mohawk"; 36 license = lib.licenses.mpl20; 37 maintainers = [ ]; 38 }; 39}