pythonPackages.bibtexparser: enable tests

This commit is contained in:
Robert Schütz 2018-02-19 17:58:23 +01:00
parent e1176503e9
commit d322a5b3ec

View File

@ -1,23 +1,31 @@
{ lib
, buildPythonPackage
, fetchPypi
, fetchFromGitHub
, pyparsing
, future
, nose
, glibcLocales
}:
buildPythonPackage rec {
pname = "bibtexparser";
version = "1.0.1";
src = fetchPypi {
inherit pname version;
sha256 = "cc41cdd8332c2bf44b97daf1f135f4f267c3b744c33976655cd270b66f964c0a";
# PyPI tarball does not ship tests
src = fetchFromGitHub {
owner = "sciunto-org";
repo = "python-${pname}";
rev = "v${version}";
sha256 = "0lmlarkfbq2hp1wa04a62245jr2mqizqsdlgilj5aq6vy92gr6ai";
};
propagatedBuildInputs = [ pyparsing future ];
# No tests in archive
doCheck = false;
checkInputs = [ nose glibcLocales ];
checkPhase = ''
LC_ALL="en_US.UTF-8" nosetests
'';
meta = {
description = "Bibtex parser for python 2.7 and 3.3 and newer";