mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
e2243a5ac9
This reverts commit f5ce8f86df
.
37 lines
786 B
Nix
37 lines
786 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pyparsing
|
|
, future
|
|
, nose
|
|
, glibcLocales
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "bibtexparser";
|
|
version = "1.0.1";
|
|
|
|
# PyPI tarball does not ship tests
|
|
src = fetchFromGitHub {
|
|
owner = "sciunto-org";
|
|
repo = "python-${pname}";
|
|
rev = "v${version}";
|
|
sha256 = "0lmlarkfbq2hp1wa04a62245jr2mqizqsdlgilj5aq6vy92gr6ai";
|
|
};
|
|
|
|
propagatedBuildInputs = [ pyparsing future ];
|
|
|
|
checkInputs = [ nose 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 ];
|
|
};
|
|
}
|