Merge pull request #115388 from dotlambda/agate-sql-0.5.6

This commit is contained in:
Sandro 2021-03-08 11:56:27 +01:00 committed by GitHub
commit b4ef31d2ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 10 deletions

View file

@ -1,15 +1,34 @@
{ lib, fetchPypi, buildPythonPackage, agate, sqlalchemy, crate }:
{ lib
, buildPythonPackage
, isPy27
, fetchFromGitHub
, agate
, sqlalchemy
, crate
, nose
, geojson
}:
buildPythonPackage rec {
pname = "agate-sql";
version = "0.5.5";
version = "0.5.6";
src = fetchPypi {
inherit pname version;
sha256 = "50a39754babef6cd0d1b1e75763324a49593394fe46ab1ea9546791b5e6b69a7";
disabled = isPy27;
src = fetchFromGitHub {
owner = "wireservice";
repo = "agate-sql";
rev = version;
sha256 = "16rijcnvxrvw9mmyk4228dalrr2qb74y649g1l6qifiabx5ij78s";
};
propagatedBuildInputs = [ agate sqlalchemy crate ];
propagatedBuildInputs = [ agate sqlalchemy ];
checkInputs = [ crate nose geojson ];
checkPhase = ''
nosetests
'';
pythonImportsCheck = [ "agatesql" ];
@ -18,7 +37,5 @@ buildPythonPackage rec {
homepage = "https://github.com/wireservice/agate-sql";
license = with licenses; [ mit ];
maintainers = with maintainers; [ vrthra ];
# FAIL: test_to_sql_create_statement_with_schema (tests.test_agatesql.TestSQL)
broken = true;
};
}

View file

@ -38,7 +38,5 @@ python3.pkgs.buildPythonApplication rec {
maintainers = with maintainers; [ vrthra ];
license = licenses.mit;
homepage = "https://github.com/wireservice/csvkit";
# FAIL: test_to_sql_create_statement_with_schema (tests.test_agatesql.TestSQL)
broken = true;
};
}