at master 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 requests, 7 xmltodict, 8 pyhamcrest, 9 mock, 10 pytestCheckHook, 11}: 12 13buildPythonPackage { 14 pname = "pizzapi"; 15 version = "0.0.6"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "ggrammar"; 20 repo = "pizzapi"; 21 rev = "2a67ceb0f6df285988f1a2d7b678bbd2526c26a4"; 22 hash = "sha256-oBwNNsnRhm/kv8DxNrAKkeGv2RZA+RMdYRgByy3qmsU="; 23 }; 24 25 postPatch = '' 26 # Remove pytest-runner from setup_requires 27 substituteInPlace setup.py \ 28 --replace-fail 'setup_requires=["pytest-runner"],' 'setup_requires=[],' 29 ''; 30 31 build-system = [ setuptools ]; 32 33 dependencies = [ 34 requests 35 xmltodict 36 pyhamcrest 37 ]; 38 39 nativeCheckInputs = [ 40 mock 41 pytestCheckHook 42 ]; 43 44 pythonImportsCheck = [ "pizzapi" ]; 45 46 meta = { 47 description = "Python wrapper for the Dominos Pizza API"; 48 homepage = "https://github.com/ggrammar/pizzapi"; 49 license = lib.licenses.mit; 50 maintainers = [ lib.maintainers.jamiemagee ]; 51 }; 52}