1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/bibtexparser/default.nix

34 lines
783 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage, fetchFromGitHub
, future, pyparsing
, glibcLocales, nose
}:
buildPythonPackage rec {
pname = "bibtexparser";
2018-02-17 13:18:27 +00:00
version = "1.0.1";
# PyPI tarball does not ship tests
src = fetchFromGitHub {
owner = "sciunto-org";
repo = "python-${pname}";
rev = "v${version}";
sha256 = "0lmlarkfbq2hp1wa04a62245jr2mqizqsdlgilj5aq6vy92gr6ai";
};
propagatedBuildInputs = [ future pyparsing ];
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 ];
};
}