python3.pkgs.pysim: init at unstable-2023-08-11
This commit is contained in:
parent
ba1d1a863b
commit
980b0a9206
72
pkgs/development/python-modules/pysim/default.nix
Normal file
72
pkgs/development/python-modules/pysim/default.nix
Normal file
|
@ -0,0 +1,72 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, setuptools
|
||||
, pytestCheckHook
|
||||
, pytest-asyncio
|
||||
, colorlog
|
||||
, smpp_pdu
|
||||
, pyscard
|
||||
, packaging
|
||||
, gsm0338
|
||||
, bidict
|
||||
, jsonpath-ng
|
||||
, termcolor
|
||||
, pyyaml
|
||||
, pycryptodomex
|
||||
, construct
|
||||
, pyserial
|
||||
, pytlv
|
||||
, cmd2
|
||||
}:
|
||||
|
||||
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'
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
bidict
|
||||
cmd2
|
||||
colorlog
|
||||
construct
|
||||
gsm0338
|
||||
jsonpath-ng
|
||||
packaging
|
||||
pycryptodomex
|
||||
pyscard
|
||||
pyserial
|
||||
pytlv
|
||||
pyyaml
|
||||
smpp_pdu
|
||||
termcolor
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "pySim" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A python tool to program SIMs / USIMs / ISIMs.";
|
||||
homepage = "https://github.com/osmocom/pysim";
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ flokli janik ];
|
||||
};
|
||||
}
|
|
@ -9823,6 +9823,8 @@ self: super: with self; {
|
|||
|
||||
pysigset = callPackage ../development/python-modules/pysigset { };
|
||||
|
||||
pysim = callPackage ../development/python-modules/pysim { };
|
||||
|
||||
pysimplegui = callPackage ../development/python-modules/pysimplegui { };
|
||||
|
||||
pysingleton = callPackage ../development/python-modules/pysingleton { };
|
||||
|
|
Loading…
Reference in a new issue