agate-sql: refactor

This commit is contained in:
Rahul Gopinath 2017-05-02 21:12:09 -07:00
parent 4365d634c8
commit e13b240359
2 changed files with 22 additions and 17 deletions

View File

@ -0,0 +1,21 @@
{ stdenv, fetchPypi, buildPythonPackage, agate, sqlalchemy }:
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "agate-sql";
version = "0.5.2";
src = fetchPypi {
inherit pname version;
sha256 = "0qlfwql6fnbs0r1rj7nxv4n5scad53b8dlh4qv6gyklvdk3wwn14";
};
propagatedBuildInputs = [ agate sqlalchemy ];
meta = with stdenv.lib; {
description = "Adds SQL read/write support to agate.";
homepage = https://github.com/wireservice/agate-sql;
license = with licenses; [ mit ];
maintainers = with maintainers; [ vrthra ];
};
}

View File

@ -122,23 +122,7 @@ in {
agate-excel = callPackage ../development/python-modules/agate-excel { };
agate-sql = buildPythonPackage rec {
name = "agate-sql-0.5.2";
meta = {
description = "Adds SQL read/write support to agate.";
homepage = https://github.com/wireservice/agate-sql;
license = licenses.mit;
maintainers = with maintainers; [ vrthra ];
};
propagatedBuildInputs = with self; [ agate sqlalchemy ];
src = pkgs.fetchurl {
url = "mirror://pypi/a/agate-sql/${name}.tar.gz";
sha256 = "0qlfwql6fnbs0r1rj7nxv4n5scad53b8dlh4qv6gyklvdk3wwn14";
};
};
agate-sql = callPackage ../development/python-modules/agate-sql { };
ansicolor = buildPythonPackage rec {
name = "ansicolor-${version}";