My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/agate-sql/default.nix

43 lines
842 B

{ lib
, buildPythonPackage
, isPy27
, fetchPypi
, agate
, sqlalchemy
, crate
, nose
, geojson
}:
buildPythonPackage rec {
pname = "agate-sql";
version = "0.5.8";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "581e062ae878cc087d3d0948670d46b16589df0790bf814524b0587a359f2ada";
};
propagatedBuildInputs = [ agate sqlalchemy ];
# crate is broken in nixpkgs, with SQLAlchemy > 1.3
# Skip tests for now as they rely on it.
doCheck = false;
checkInputs = [ crate nose geojson ];
checkPhase = ''
nosetests
'';
pythonImportsCheck = [ "agatesql" ];
meta = with lib; {
description = "Adds SQL read/write support to agate.";
homepage = "https://github.com/wireservice/agate-sql";
license = with licenses; [ mit ];
maintainers = with maintainers; [ vrthra ];
};
}