sqlalchemy-migrate: remove tempest-lib as checkDependency
use fetchPypi instead of fetchurl
This commit is contained in:
parent
1dc6ee10d7
commit
1c870ef358
@ -1,20 +1,25 @@
|
|||||||
{ stdenv, buildPythonPackage, fetchurl, python,
|
{ stdenv, buildPythonPackage, fetchPypi, python
|
||||||
unittest2, scripttest, pytz, pylint, tempest-lib, mock, testtools,
|
, unittest2, scripttest, pytz, pylint, mock
|
||||||
pbr, tempita, decorator, sqlalchemy, six, sqlparse
|
, testtools, pbr, tempita, decorator, sqlalchemy
|
||||||
|
, six, sqlparse, testrepository
|
||||||
}:
|
}:
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "sqlalchemy-migrate";
|
pname = "sqlalchemy-migrate";
|
||||||
name = "${pname}-${version}";
|
|
||||||
version = "0.11.0";
|
version = "0.11.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchPypi {
|
||||||
url = "mirror://pypi/s/sqlalchemy-migrate/${name}.tar.gz";
|
inherit pname version;
|
||||||
sha256 = "0ld2bihp9kmf57ykgzrfgxs4j9kxlw79sgdj9sfn47snw3izb2p6";
|
sha256 = "0ld2bihp9kmf57ykgzrfgxs4j9kxlw79sgdj9sfn47snw3izb2p6";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ unittest2 scripttest pytz pylint mock testtools tempest-lib ];
|
checkInputs = [ unittest2 scripttest pytz pylint mock testtools testrepository ];
|
||||||
propagatedBuildInputs = [ pbr tempita decorator sqlalchemy six sqlparse ];
|
propagatedBuildInputs = [ pbr tempita decorator sqlalchemy six sqlparse ];
|
||||||
|
|
||||||
|
prePatch = ''
|
||||||
|
sed -i -e /tempest-lib/d \
|
||||||
|
-e /testtools/d \
|
||||||
|
test-requirements.txt
|
||||||
|
'';
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
export PATH=$PATH:$out/bin
|
export PATH=$PATH:$out/bin
|
||||||
echo sqlite:///__tmp__ > test_db.cfg
|
echo sqlite:///__tmp__ > test_db.cfg
|
||||||
|
Loading…
x
Reference in New Issue
Block a user