lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

python310Packages.sqlalchemy-migrate: fix build by removing unittest2, adopt into openstack team, minor cleanups

+20 -14
+20 -14
pkgs/development/python-modules/sqlalchemy-migrate/default.nix
··· 1 1 { lib, stdenv, buildPythonPackage, fetchPypi, fetchpatch, python 2 - , unittest2, scripttest, pytz, mock 3 - , testtools, pbr, tempita, decorator, sqlalchemy 2 + , scripttest, pytz, pbr, tempita, decorator, sqlalchemy 4 3 , six, sqlparse, testrepository 5 4 }: 5 + 6 6 buildPythonPackage rec { 7 7 pname = "sqlalchemy-migrate"; 8 8 version = "0.13.0"; ··· 13 13 }; 14 14 15 15 # See: https://review.openstack.org/#/c/608382/ 16 - patches = [ (fetchpatch { 17 - url = "https://github.com/openstack/sqlalchemy-migrate/pull/18.patch"; 18 - sha256 = "1qyfq2m7w7xqf0r9bc2x42qcra4r9k9l9g1jy5j0fvlb6bvvjj07"; 19 - }) ]; 16 + patches = [ 17 + (fetchpatch { 18 + url = "https://github.com/openstack/sqlalchemy-migrate/pull/18.patch"; 19 + sha256 = "1qyfq2m7w7xqf0r9bc2x42qcra4r9k9l9g1jy5j0fvlb6bvvjj07"; 20 + }) 21 + ]; 20 22 21 - checkInputs = [ unittest2 scripttest pytz mock testtools testrepository ]; 23 + postPatch = '' 24 + substituteInPlace test-requirements.txt \ 25 + --replace "ibm_db_sa>=0.3.0;python_version<'3.0'" "" \ 26 + --replace "ibm-db-sa-py3;python_version>='3.0'" "" \ 27 + --replace "tempest-lib>=0.1.0" "" \ 28 + --replace "testtools>=0.9.34,<0.9.36" "" \ 29 + --replace "pylint" "" 30 + ''; 31 + 32 + checkInputs = [ scripttest pytz testrepository ]; 22 33 propagatedBuildInputs = [ pbr tempita decorator sqlalchemy six sqlparse ]; 23 34 24 35 doCheck = !stdenv.isDarwin; 25 36 26 - prePatch = '' 27 - sed -i -e /tempest-lib/d \ 28 - -e /testtools/d \ 29 - test-requirements.txt 30 - ''; 31 37 checkPhase = '' 32 38 export PATH=$PATH:$out/bin 33 39 echo sqlite:///__tmp__ > test_db.cfg ··· 41 47 ''; 42 48 43 49 meta = with lib; { 44 - homepage = "https://github.com/openstack/sqlalchemy-migrate"; 50 + homepage = "https://opendev.org/x/sqlalchemy-migrate"; 45 51 description = "Schema migration tools for SQLAlchemy"; 46 52 license = licenses.asl20; 47 - maintainers = with maintainers; [ makefu ]; 53 + maintainers = teams.openstack.members ++ (with maintainers; [ makefu ]); 48 54 }; 49 55 }