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