nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 python3,
4 fetchPypi,
5 mailman,
6 nixosTests,
7}:
8
9with python3.pkgs;
10buildPythonPackage rec {
11 pname = "mailman-hyperkitty";
12 version = "1.2.1";
13 format = "setuptools";
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-+Nad+8bMtYKJbUCpppRXqhB1zdbvvFXTTHlwJLQLzDg=";
18 };
19
20 propagatedBuildInputs = [
21 mailman
22 requests
23 zope-interface
24 ];
25
26 nativeCheckInputs = [
27 mock
28 nose2
29 ];
30
31 checkPhase = ''
32 ${python.interpreter} -m nose2 -v
33 '';
34
35 # There is an AssertionError
36 doCheck = false;
37
38 pythonImportsCheck = [
39 "mailman_hyperkitty"
40 ];
41
42 passthru.tests = { inherit (nixosTests) mailman; };
43
44 meta = {
45 description = "Mailman archiver plugin for HyperKitty";
46 homepage = "https://gitlab.com/mailman/mailman-hyperkitty";
47 license = lib.licenses.gpl3Plus;
48 maintainers = with lib.maintainers; [ qyliss ];
49 };
50}