mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
Merge pull request #201395 from SuperSandro2000/smpplib
python310Packages.smpplib: use pytestCheckHook, remove tox requirement
This commit is contained in:
commit
42072df448
@ -1,4 +1,11 @@
|
||||
{ buildPythonPackage, fetchPypi, lib, python, six, tox, mock, pytest }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, python
|
||||
, six
|
||||
, mock
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "smpplib";
|
||||
@ -9,21 +16,27 @@ buildPythonPackage rec {
|
||||
sha256 = "c0b01947b47e404f42ccb59e906b6e4eb507963c971d59b44350db0f29c76166";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ six ];
|
||||
checkInputs = [ tox mock pytest ];
|
||||
propagatedBuildInputs = [
|
||||
six
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
pytest
|
||||
'';
|
||||
checkInputs = [
|
||||
mock
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
rm -rf $out/${python.sitePackages}/tests
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"smpplib"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "SMPP library for Python";
|
||||
homepage = "https://github.com/python-smpplib/python-smpplib";
|
||||
license = licenses.lgpl3Plus;
|
||||
maintainers = [ maintainers.globin ];
|
||||
maintainers = with maintainers; [ globin ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user