Files
nixpkgs/pkgs/development/python-modules/bibtexparser/default.nix
T

34 lines
804 B
Nix
Raw Normal View History

2017-05-05 09:50:49 +02:00
{ lib
, buildPythonPackage, fetchFromGitHub
, future, pyparsing
2019-01-17 19:40:58 +01:00
, glibcLocales, nose, unittest2
2017-05-05 09:50:49 +02:00
}:
buildPythonPackage rec {
pname = "bibtexparser";
2019-01-17 19:40:58 +01:00
version = "1.1.0";
2017-05-05 09:50:49 +02:00
2018-02-19 17:58:23 +01:00
# PyPI tarball does not ship tests
src = fetchFromGitHub {
owner = "sciunto-org";
repo = "python-${pname}";
rev = "v${version}";
2019-01-17 19:40:58 +01:00
sha256 = "1yj3hqnmkjh0sjjhmlm4097mmz98kna8rn0dd9g8zaw9g1a35h8c";
2017-05-05 09:50:49 +02:00
};
propagatedBuildInputs = [ future pyparsing ];
2019-01-17 19:40:58 +01:00
checkInputs = [ nose unittest2 glibcLocales ];
2018-02-19 17:58:23 +01:00
checkPhase = ''
LC_ALL="en_US.UTF-8" nosetests
'';
2017-05-05 09:50:49 +02:00
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 ];
2017-12-05 23:20:11 +01:00
maintainers = with lib.maintainers; [ fridh ];
2017-05-05 09:50:49 +02:00
};
}