mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 10:16:44 +01:00
34 lines
806 B
Nix
34 lines
806 B
Nix
{ lib
|
|
, buildPythonPackage, fetchFromGitHub
|
|
, future, pyparsing
|
|
, glibcLocales, nose, unittest2
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "bibtexparser";
|
|
version = "1.1.0";
|
|
|
|
# PyPI tarball does not ship tests
|
|
src = fetchFromGitHub {
|
|
owner = "sciunto-org";
|
|
repo = "python-${pname}";
|
|
rev = "v${version}";
|
|
sha256 = "1yj3hqnmkjh0sjjhmlm4097mmz98kna8rn0dd9g8zaw9g1a35h8c";
|
|
};
|
|
|
|
propagatedBuildInputs = [ future pyparsing ];
|
|
|
|
checkInputs = [ nose unittest2 glibcLocales ];
|
|
|
|
checkPhase = ''
|
|
LC_ALL="en_US.UTF-8" nosetests
|
|
'';
|
|
|
|
meta = {
|
|
description = "Bibtex parser for python 2.7 and 3.3 and newer";
|
|
homepage = "https://github.com/sciunto-org/python-bibtexparser";
|
|
license = with lib.licenses; [ gpl3 bsd3 ];
|
|
maintainers = with lib.maintainers; [ fridh ];
|
|
};
|
|
}
|