python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / misc / pubs / default.nix
blob81cb81829a420143a834153eb625080e58d1a945
1 { lib
2 , fetchFromGitHub
3 , fetchpatch
4 , python3
5 }:
7 python3.pkgs.buildPythonApplication rec {
8   pname = "pubs";
9   version = "0.9.0";
11   src = fetchFromGitHub {
12     owner = "pubs";
13     repo = "pubs";
14     rev = "v${version}";
15     hash = "sha256-U/9MLqfXrzYVGttFSafw4pYDy26WgdsJMCxciZzO1pw=";
16   };
18   patches = [
19     # https://github.com/pubs/pubs/pull/278
20     (fetchpatch {
21       url = "https://github.com/pubs/pubs/commit/9623d2c3ca8ff6d2bb7f6c8d8624f9a174d831bc.patch";
22       hash = "sha256-6qoufKPv3k6C9BQTZ2/175Nk7zWPh89vG+zebx6ZFOk=";
23     })
24     # https://github.com/pubs/pubs/pull/279
25     (fetchpatch {
26       url = "https://github.com/pubs/pubs/commit/05e214eb406447196c77c8aa3e4658f70e505f23.patch";
27       hash = "sha256-UBkKiYaG6y6z8lsRpdcsaGsoklv6qj07KWdfkQcVl2g=";
28     })
29   ];
31   propagatedBuildInputs = with python3.pkgs; [
32     pyyaml
33     bibtexparser
34     python-dateutil
35     six
36     requests
37     configobj
38     beautifulsoup4
39     feedparser
40     argcomplete
41   ];
43   checkInputs = with python3.pkgs; [
44     pyfakefs
45     mock
46     ddt
47     pytestCheckHook
48   ];
50   disabledTestPaths = [
51     # Disabling git tests because they expect git to be preconfigured
52     # with the user's details. See
53     # https://github.com/NixOS/nixpkgs/issues/94663
54     "tests/test_git.py"
55   ];
57   disabledTests = [
58     # https://github.com/pubs/pubs/issues/276
59     "test_readme"
60   ];
62   meta = with lib; {
63     description = "Command-line bibliography manager";
64     homepage = "https://github.com/pubs/pubs";
65     license = licenses.lgpl3Only;
66     maintainers = with maintainers; [ gebner dotlambda ];
67   };