10 buildPythonPackage rec {
13 format = "setuptools";
15 src = fetchFromGitHub {
18 rev = "refs/tags/v${version}";
19 hash = "sha256-hIqXwhmvstCslsCO973oK5FF2c8gZJ0wNUI/z8W+OjU=";
22 propagatedBuildInputs = [ pyopenssl ];
28 # Test attempts to connect to a port on localhost which fails in nix build
33 "test_https_big_download"
35 "test_redirect_and_download"
37 "test_upload_size_limit"
40 pythonImportsCheck = [ "servefile" ];
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 ];