biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / servefile / default.nix
blob147c9953bc47ece939dc17a35a07ac7b0be0a29b
2   buildPythonPackage,
3   fetchFromGitHub,
4   lib,
5   pyopenssl,
6   pytestCheckHook,
7   requests,
8 }:
10 buildPythonPackage rec {
11   pname = "servefile";
12   version = "0.5.4";
13   format = "setuptools";
15   src = fetchFromGitHub {
16     owner = "sebageek";
17     repo = pname;
18     rev = "refs/tags/v${version}";
19     hash = "sha256-hIqXwhmvstCslsCO973oK5FF2c8gZJ0wNUI/z8W+OjU=";
20   };
22   propagatedBuildInputs = [ pyopenssl ];
24   nativeCheckInputs = [
25     pytestCheckHook
26     requests
27   ];
28   # Test attempts to connect to a port on localhost which fails in nix build
29   # environment.
30   disabledTests = [
31     "test_abort_download"
32     "test_big_download"
33     "test_https_big_download"
34     "test_https"
35     "test_redirect_and_download"
36     "test_specify_port"
37     "test_upload_size_limit"
38     "test_upload"
39   ];
40   pythonImportsCheck = [ "servefile" ];
42   meta = with lib; {
43     description = "Serve files from shell via a small HTTP server";
44     mainProgram = "servefile";
45     homepage = "https://github.com/sebageek/servefile";
46     license = licenses.gpl3Plus;
47     maintainers = with maintainers; [ samuela ];
48   };