Skip to content

Commit

Permalink
pythonPackages.bibtexparser: enable tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Schütz committed Feb 22, 2018
1 parent e117650 commit d322a5b
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions pkgs/development/python-modules/bibtexparser/default.nix
Original file line number Diff line number Diff line change
@@ -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";
Expand Down

0 comments on commit d322a5b

Please sign in to comment.