python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / misc / wayback-machine-archiver / default.nix
blob986ca165ed246137050a27c07cc528ca702d207e
1 { lib, python3, fetchFromGitHub }:
3 python3.pkgs.buildPythonApplication rec {
4   pname = "wayback-machine-archiver";
5   version = "1.9.1";
7   src = fetchFromGitHub {
8     owner = "agude";
9     repo = "wayback-machine-archiver";
10     rev = "v${version}";
11     sha256 = "0dnnqx507gpj8wsx6f2ivfmha969ydayiqsvxh23p9qcixw9257x";
12   };
14   nativeBuildInputs = with python3.pkgs; [ pypandoc ];
15   propagatedBuildInputs = with python3.pkgs; [ requests ];
16   checkInputs = with python3.pkgs; [ pytestCheckHook requests-mock ];
18   postPatch = ''
19     substituteInPlace setup.py \
20       --replace \"pytest-runner\", ""
21   '';
23   pythonImportsCheck = [ "wayback_machine_archiver" ];
25   meta = with lib; {
26     description = "A Python script to submit web pages to the Wayback Machine for archiving";
27     homepage = "https://github.com/agude/wayback-machine-archiver";
28     license = licenses.mit;
29     maintainers = with maintainers; [ dandellion ];
30   };