1{ lib 2, buildPythonPackage, fetchFromGitHub 3, future, pyparsing 4, glibcLocales, nose, unittest2 5}: 6 7buildPythonPackage rec { 8 pname = "bibtexparser"; 9 version = "1.1.0"; 10 11 # PyPI tarball does not ship tests 12 src = fetchFromGitHub { 13 owner = "sciunto-org"; 14 repo = "python-${pname}"; 15 rev = "v${version}"; 16 sha256 = "1yj3hqnmkjh0sjjhmlm4097mmz98kna8rn0dd9g8zaw9g1a35h8c"; 17 }; 18 19 propagatedBuildInputs = [ future pyparsing ]; 20 21 checkInputs = [ nose unittest2 glibcLocales ]; 22 23 checkPhase = '' 24 LC_ALL="en_US.UTF-8" nosetests 25 ''; 26 27 meta = { 28 description = "Bibtex parser for python 2.7 and 3.3 and newer"; 29 homepage = "https://github.com/sciunto-org/python-bibtexparser"; 30 license = with lib.licenses; [ gpl3 bsd3 ]; 31 maintainers = with lib.maintainers; [ fridh ]; 32 }; 33}