Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / bibtexparser / default.nix
blobd69b2d6ce4ca0db8358937e28cb0d665c60c7424
1 { lib
2 , buildPythonPackage, fetchFromGitHub
3 , future, pyparsing
4 , glibcLocales, nose, unittest2
5 }:
7 buildPythonPackage rec {
8   pname = "bibtexparser";
9   version = "1.1.0";
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   };
19   propagatedBuildInputs = [ future pyparsing ];
21   checkInputs = [ nose unittest2 glibcLocales ];
23   checkPhase = ''
24     LC_ALL="en_US.UTF-8" nosetests
25   '';
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   };