Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-18.03 36 lines 786 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pyparsing 5, future 6, nose 7, glibcLocales 8}: 9 10buildPythonPackage rec { 11 pname = "bibtexparser"; 12 version = "1.0.1"; 13 14 # PyPI tarball does not ship tests 15 src = fetchFromGitHub { 16 owner = "sciunto-org"; 17 repo = "python-${pname}"; 18 rev = "v${version}"; 19 sha256 = "0lmlarkfbq2hp1wa04a62245jr2mqizqsdlgilj5aq6vy92gr6ai"; 20 }; 21 22 propagatedBuildInputs = [ pyparsing future ]; 23 24 checkInputs = [ nose glibcLocales ]; 25 26 checkPhase = '' 27 LC_ALL="en_US.UTF-8" nosetests 28 ''; 29 30 meta = { 31 description = "Bibtex parser for python 2.7 and 3.3 and newer"; 32 homepage = https://github.com/sciunto-org/python-bibtexparser; 33 license = with lib.licenses; [ gpl3 bsd3 ]; 34 maintainers = with lib.maintainers; [ fridh ]; 35 }; 36}