1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 isPy3k,
6}:
7
8buildPythonPackage rec {
9 pname = "python-doi";
10 version = "0.2";
11 format = "setuptools";
12
13 src = fetchFromGitHub {
14 owner = "papis";
15 repo = "python-doi";
16 rev = "v${version}";
17 sha256 = "sha256-c5Wo/bJuHwAG7XOy4Re9joYw14jWZ6QaRB4Wsk8StL0=";
18 };
19
20 disabled = !isPy3k;
21
22 meta = with lib; {
23 description = "Python library to work with Document Object Identifiers (doi)";
24 homepage = "https://github.com/papis/python-doi";
25 maintainers = with maintainers; [ teto ];
26 };
27}