about summary refs log tree commit diff
path: root/pkgs/development/python-modules/wallet-py3k/default.nix
blob: fb50398d5be4e06c4d4571d98b5df54bb48c5605 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
  lib,
  buildPythonPackage,
  fetchPypi,
  substituteAll,
  openssl,
  setuptools,
  six,
}:

buildPythonPackage rec {
  pname = "wallet-py3k";
  version = "0.0.4";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-kyHSh8qHbzK6gFLGnL6dUJ/GLJHTNC86jjXa/APqIzI=";
  };

  patches = [
    (substituteAll {
      src = ./openssl-path.patch;
      openssl = lib.getExe openssl;
    })
  ];

  build-system = [ setuptools ];

  dependencies = [ six ];

  doCheck = false; # no tests

  pythonImportsCheck = [ "wallet" ];

  meta = with lib; {
    description = "Passbook file generator";
    homepage = "https://pypi.org/project/wallet-py3k";
    license = licenses.mit;
    maintainers = with maintainers; [ hexa ];
  };
}