48 lines
767 B
Nix
48 lines
767 B
Nix
|
{ 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 ];
|
||
|
};
|
||
|
}
|