Files
nixpkgs/pkgs/development/python-modules/python-doi/default.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
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>
2025-12-10 18:09:49 +01:00

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 ];
};
}