1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 15:41:40 +00:00
nixpkgs/pkgs/development/python-modules/agate/default.nix
Robert Schütz fda46a645c python.pkgs.agate: fix tests
Need to use fetchFromGitHub because examples/ is missing from PyPI tarball.
Also clean up the expression and specify appropriate checkInputs.
Fixes #42867.
2018-07-06 16:22:51 +02:00

38 lines
1 KiB
Nix

{ lib, fetchFromGitHub, buildPythonPackage, isPy3k
, six, pytimeparse, parsedatetime, Babel
, isodate, python-slugify, leather
, glibcLocales, nose, lxml, cssselect, unittest2 }:
buildPythonPackage rec {
pname = "agate";
version = "1.6.1";
# PyPI tarball does not include all test files
# https://github.com/wireservice/agate/pull/716
src = fetchFromGitHub {
owner = "wireservice";
repo = pname;
rev = version;
sha256 = "077zj8xad8hsa3nqywvf7ircirmx3krxdipl8wr3dynv3l3khcpl";
};
propagatedBuildInputs = [
six pytimeparse parsedatetime Babel
isodate python-slugify leather
];
checkInputs = [ glibcLocales nose lxml cssselect ]
++ lib.optional (!isPy3k) unittest2;
checkPhase = ''
LC_ALL="en_US.UTF-8" nosetests tests
'';
meta = with 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 ];
};
}