
If a Python package does not come with either `format` or `pyproject` we consider it a setuptools build, that calls `setup.py` directly, which is deprecated. This change, as a first step, migrates a large chunk of these packages to set setuptools as their explicit format This is so we can unify the problem space for the next step of the migration.
35 lines
774 B
Nix
35 lines
774 B
Nix
{
|
|
lib,
|
|
python3Packages,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "savepagenow";
|
|
version = "1.1.1";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pastpages";
|
|
repo = "savepagenow";
|
|
rev = "v${version}";
|
|
sha256 = "1lz6rc47cds9rb35jdf8n13gr61wdkh5jqzx4skikm1yrqkwjyhm";
|
|
};
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
click
|
|
requests
|
|
];
|
|
|
|
# requires network access
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Simple Python wrapper for archive.org's \"Save Page Now\" capturing service";
|
|
homepage = "https://github.com/pastpages/savepagenow";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
mainProgram = "savepagenow";
|
|
};
|
|
}
|