at 23.11-beta 1.1 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, httplib2 5, oauth 6, oauth2 7, semantic-version 8, flask 9, httpretty 10, oauthlib 11, pyflakes 12, pytest 13, pytestcache 14, pytest-cov 15, covCore 16, pytest-flakes 17, sphinx 18, mock 19, chalice 20, isPy27 21}: 22 23buildPythonPackage rec { 24 pname = "pylti"; 25 version = "0.7.0"; 26 27 disabled = !isPy27; 28 29 # There is no need to fix mock. https://github.com/mitodl/pylti/pull/48 30 postPatch = '' 31 substituteInPlace setup.py --replace "mock==1.0.1" "mock" 32 ''; 33 34 propagatedBuildInputs = [ httplib2 oauth oauth2 semantic-version ]; 35 nativeCheckInputs = [ 36 flask httpretty oauthlib pyflakes pytest pytestcache pytest-cov covCore 37 pytest-flakes sphinx mock chalice 38 ]; 39 40 src = fetchPypi { 41 pname = "PyLTI"; 42 inherit version; 43 sha256 = "80938a235b1ab390f6889a95237d087ea7adde5cc50fcae9c80c49898e8ee78e"; 44 }; 45 46 meta = { 47 description = "Implementation of IMS LTI interface that works with edX"; 48 homepage = "https://github.com/mitodl/pylti"; 49 license = lib.licenses.bsdOriginal; 50 maintainers = with lib.maintainers; [ layus ]; 51 }; 52}