mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-14 03:50:21 +08:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
28 lines
557 B
Nix
28 lines
557 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
isPy3k,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-doi";
|
|
version = "0.2";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "papis";
|
|
repo = "python-doi";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-c5Wo/bJuHwAG7XOy4Re9joYw14jWZ6QaRB4Wsk8StL0=";
|
|
};
|
|
|
|
disabled = !isPy3k;
|
|
|
|
meta = {
|
|
description = "Python library to work with Document Object Identifiers (doi)";
|
|
homepage = "https://github.com/papis/python-doi";
|
|
maintainers = with lib.maintainers; [ teto ];
|
|
};
|
|
}
|