mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
40 lines
725 B
Nix
40 lines
725 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, isPy27
|
|
, fetchPypi
|
|
, agate
|
|
, sqlalchemy
|
|
, crate
|
|
, nose
|
|
, geojson
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "agate-sql";
|
|
version = "0.5.6";
|
|
|
|
disabled = isPy27;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "056dc9e587fbdfdf3f1c9950f4793a5ee87622c19deba31aa0a6d6681816dcde";
|
|
};
|
|
|
|
propagatedBuildInputs = [ agate sqlalchemy ];
|
|
|
|
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 ];
|
|
};
|
|
}
|