lol

python.pkgs.PyLTI: move expression

+52 -29
+51
pkgs/development/python-modules/pylti/default.nix
··· 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_27 13 + , pytestcache 14 + , pytestcov 15 + , covCore 16 + , pytestflakes 17 + , pytestpep8 18 + , sphinx 19 + , mock 20 + , isPy27 21 + }: 22 + 23 + buildPythonPackage rec { 24 + pname = "PyLTI"; 25 + version = "0.4.1"; 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 + checkInputs = [ 36 + flask httpretty oauthlib pyflakes pytest_27 pytestcache pytestcov covCore 37 + pytestflakes pytestpep8 sphinx mock 38 + ]; 39 + 40 + src = fetchPypi { 41 + inherit pname version; 42 + sha256 = "076llj10j85zw3zq2gygx2pcfqi9rgcld5m4vq1iai1fk15x60fz"; 43 + }; 44 + 45 + meta = { 46 + description = "Implementation of IMS LTI interface that works with edX"; 47 + homepage = "https://github.com/mitodl/pylti"; 48 + license = lib.licenses.bsdOriginal; 49 + maintainers = with lib.maintainers; [ layus ]; 50 + }; 51 + }
+1 -29
pkgs/top-level/python-packages.nix
··· 5621 5621 }; 5622 5622 }; 5623 5623 5624 - PyLTI = buildPythonPackage rec { 5625 - version = "0.4.1"; 5626 - name = "PyLTI-${version}"; 5627 - 5628 - disabled = !isPy27; 5629 - 5630 - # There is no need to fix mock. https://github.com/mitodl/pylti/pull/48 5631 - postPatch = '' 5632 - substituteInPlace setup.py --replace "mock==1.0.1" "mock" 5633 - ''; 5634 - 5635 - propagatedBuildInputs = with self; [ httplib2 oauth oauth2 semantic-version ]; 5636 - buildInputs = with self; [ 5637 - flask httpretty oauthlib pyflakes pytest_27 pytestcache pytestcov covCore 5638 - pytestflakes pytestpep8 sphinx mock 5639 - ]; 5640 - 5641 - src = pkgs.fetchurl { 5642 - url = "mirror://pypi/P/PyLTI/${name}.tar.gz"; 5643 - sha256 = "076llj10j85zw3zq2gygx2pcfqi9rgcld5m4vq1iai1fk15x60fz"; 5644 - }; 5645 - 5646 - meta = { 5647 - description = "Implementation of IMS LTI interface that works with edX"; 5648 - homepage = "https://github.com/mitodl/pylti"; 5649 - license = licenses.bsdOriginal; 5650 - maintainers = with maintainers; [ layus ]; 5651 - }; 5652 - }; 5624 + PyLTI = callPackage ../development/python-modules/pylti { }; 5653 5625 5654 5626 lmdb = buildPythonPackage rec { 5655 5627 pname = "lmdb";