pythonpackages.lti: rename to PyLTI and remove overriding
- rename to PyLTI to follow upstream - remove overriding because it is not necessary; newer mock can be used, and modules python packages should be fixed to not propagate pytest (see separate commit). cc maintainer @layus
This commit is contained in:
parent
d69a25dfde
commit
49a313c395
@ -38,7 +38,7 @@ in pythonPackages.buildPythonApplication rec {
|
|||||||
|
|
||||||
propagatedBuildInputs = with pythonPackages; [
|
propagatedBuildInputs = with pythonPackages; [
|
||||||
requests2
|
requests2
|
||||||
cgroup-utils docker_1_7_2 docutils lti mock pygments
|
cgroup-utils docker_1_7_2 docutils PyLTI mock pygments
|
||||||
pymongo pyyaml rpyc sh simpleldap sphinx_rtd_theme tidylib
|
pymongo pyyaml rpyc sh simpleldap sphinx_rtd_theme tidylib
|
||||||
websocket_client watchdog webpy-custom flup
|
websocket_client watchdog webpy-custom flup
|
||||||
];
|
];
|
||||||
|
@ -7981,26 +7981,21 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
lti = let
|
PyLTI = buildPythonPackage rec {
|
||||||
self' = (self.override {self = self';}) // {pytest = self.pytest_27;};
|
|
||||||
mock_1_0_1 = self'.mock.overrideDerivation (_: rec {
|
|
||||||
name = "mock-1.0.1";
|
|
||||||
propagatedBuildInputs = null;
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "http://pypi.python.org/packages/source/m/mock/${name}.tar.gz";
|
|
||||||
sha256 = "0kzlsbki6q0awf89rc287f3aj8x431lrajf160a70z0ikhnxsfdq";
|
|
||||||
};
|
|
||||||
});
|
|
||||||
in buildPythonPackage rec {
|
|
||||||
version = "0.4.1";
|
version = "0.4.1";
|
||||||
name = "PyLTI-${version}";
|
name = "PyLTI-${version}";
|
||||||
|
|
||||||
disabled = !isPy27;
|
disabled = !isPy27;
|
||||||
|
|
||||||
|
# There is no need to fix mock. https://github.com/mitodl/pylti/pull/48
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace setup.py --replace "mock==1.0.1" "mock"
|
||||||
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = with self; [ httplib2 oauth oauth2 semantic-version ];
|
propagatedBuildInputs = with self; [ httplib2 oauth oauth2 semantic-version ];
|
||||||
buildInputs = with self'; [
|
buildInputs = with self; [
|
||||||
flask httpretty oauthlib pyflakes pytest pytestcache pytestcov covCore
|
flask httpretty oauthlib pyflakes pytest pytestcache pytestcov covCore
|
||||||
pytestflakes pytestpep8 sphinx mock_1_0_1
|
pytestflakes pytestpep8 sphinx mock
|
||||||
];
|
];
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
src = pkgs.fetchurl {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user