agate: refactor

This commit is contained in:
Rahul Gopinath 2017-05-02 21:08:10 -07:00
parent d76e68423f
commit 4036bc91da
2 changed files with 28 additions and 21 deletions

View File

@ -0,0 +1,27 @@
{ stdenv, fetchPypi, buildPythonPackage, isPy3k,
discid, six, parsedatetime, isodate, Babel, pytimeparse,
leather, python-slugify }:
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "agate";
version = "1.6.0";
src = fetchPypi {
inherit pname version;
sha256 = "02pb5jjvzjqfpsa7q12afbk9nqj06xdpw1s7qa6a1bnalikfniqm";
};
propagatedBuildInputs = [ discid six parsedatetime
isodate Babel pytimeparse leather python-slugify ];
doCheck = !isPy3k;
# (only) on python3 unittest loader (loadTestsFromModule) fails
meta = with stdenv.lib; {
description = "A Python data analysis library that is optimized for humans instead of machines";
homepage = https://github.com/wireservice/agate;
license = with licenses; [ mit ];
maintainers = with maintainers; [ vrthra ];
};
}

View File

@ -114,27 +114,7 @@ in {
aenum = callPackage ../development/python-modules/aenum { };
agate = buildPythonPackage rec {
name = "agate-1.6.0";
meta = {
description = "A Python data analysis library that is optimized for humans instead of machines";
homepage = "https://github.com/wireservice/agate";
license = licenses.mit;
maintainers = with maintainers; [ vrthra ];
};
doCheck = false;
# (only) on python3 unittest loader (loadTestsFromModule) fails
propagatedBuildInputs = with self; [ discid six parsedatetime isodate Babel
pytimeparse leather python-slugify ];
src = pkgs.fetchurl {
url = "mirror://pypi/a/agate/${name}.tar.gz";
sha256 = "02pb5jjvzjqfpsa7q12afbk9nqj06xdpw1s7qa6a1bnalikfniqm";
};
};
agate = callPackage ../development/python-modules/agate { };
phonenumbers = callPackage ../development/python-modules/phonenumbers { };