567e8dfd8e
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>
40 lines
778 B
Nix
40 lines
778 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
setuptools,
|
|
urllib3,
|
|
certifi,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "domeneshop";
|
|
version = "0.4.4";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-UCxIDnhIAkxZ1oQXYRyAMdGgUsUZ6AlYXwsxL49TFAg=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
dependencies = [
|
|
certifi
|
|
urllib3
|
|
];
|
|
|
|
# There are none
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "domeneshop" ];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/domeneshop/python-domeneshop/releases/tag/v${version}";
|
|
description = "Python library for working with the Domeneshop API";
|
|
homepage = "https://api.domeneshop.no/docs/";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ pbsds ];
|
|
};
|
|
}
|