2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
|
|
|
pytestCheckHook,
|
|
|
|
pytest-asyncio,
|
|
|
|
colorlog,
|
|
|
|
smpp-pdu,
|
|
|
|
pyscard,
|
|
|
|
packaging,
|
|
|
|
gsm0338,
|
|
|
|
bidict,
|
|
|
|
jsonpath-ng,
|
|
|
|
termcolor,
|
|
|
|
pyyaml,
|
|
|
|
pycryptodomex,
|
|
|
|
construct,
|
|
|
|
pyserial,
|
|
|
|
pytlv,
|
|
|
|
cmd2,
|
2023-08-22 20:05:09 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage {
|
|
|
|
pname = "pysim";
|
|
|
|
version = "unstable-2023-08-13";
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "osmocom";
|
|
|
|
repo = "pysim";
|
|
|
|
rev = "09ff0e2b433b7143d5b40b4494744569b805e554";
|
|
|
|
hash = "sha256-7IwIovGR0GcS1bidSqoytmombK6NkLSVAfKB2teW2JU=";
|
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace 'smpp.pdu @ git+https://github.com/hologram-io/smpp.pdu' 'smpp.pdu'
|
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2023-08-22 20:05:09 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
bidict
|
|
|
|
cmd2
|
|
|
|
colorlog
|
|
|
|
construct
|
|
|
|
gsm0338
|
|
|
|
jsonpath-ng
|
|
|
|
packaging
|
|
|
|
pycryptodomex
|
|
|
|
pyscard
|
|
|
|
pyserial
|
|
|
|
pytlv
|
|
|
|
pyyaml
|
2024-04-21 15:54:59 +00:00
|
|
|
smpp-pdu
|
2023-08-22 20:05:09 +00:00
|
|
|
termcolor
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2023-08-22 20:05:09 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "pySim" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A python tool to program SIMs / USIMs / ISIMs.";
|
|
|
|
homepage = "https://github.com/osmocom/pysim";
|
|
|
|
license = licenses.gpl2;
|
2024-06-05 15:53:02 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
flokli
|
|
|
|
janik
|
|
|
|
];
|
2023-08-22 20:05:09 +00:00
|
|
|
};
|
|
|
|
}
|