python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / misc / bepasty / default.nix
blob69a784ec4cc362ba5a44374ccc31e9f5f368de0b
1 { python3
2 , lib
3 }:
5 let
6   python = python3.override {
7     self = python;
8     packageOverrides = self: super : {
9       xstatic-bootstrap = super.xstatic-bootstrap.overridePythonAttrs(oldAttrs: rec {
10         version = "3.3.7.1";
11         src = oldAttrs.src.override {
12           inherit version;
13           sha256 = "0cgihyjb9rg6r2ddpzbjm31y0901vyc8m9h3v0zrhxydx1w9x50c";
14         };
15       });
16     };
17   };
19 #We need to use buildPythonPackage here to get the PYTHONPATH build correctly.
20 #This is needed for services.bepasty
21 #https://github.com/NixOS/nixpkgs/pull/38300
22 in with python.pkgs; buildPythonPackage rec {
23   pname = "bepasty";
24   version = "0.5.0";
26   propagatedBuildInputs = [
27     flask
28     pygments
29     setuptools
30     xstatic
31     xstatic-bootbox
32     xstatic-bootstrap
33     xstatic-jquery
34     xstatic-jquery-file-upload
35     xstatic-jquery-ui
36     xstatic-pygments
37   ];
39   buildInputs = [ setuptools-scm ];
41   src = fetchPypi {
42     inherit pname version;
43     sha256 = "1y3smw9620w2ia4zfsl2svb9j7mkfgc8z1bzjffyk1w5vryhwikh";
44   };
46   checkInputs = [
47     pytest
48     selenium
49   ];
51   # No tests in sdist
52   doCheck = false;
54   meta = {
55     homepage = "https://github.com/bepasty/bepasty-server";
56     description = "Binary pastebin server";
57     license = lib.licenses.mit;
58     maintainers = [ lib.maintainers.makefu ];
59   };