Merge pull request #270469 from dotlambda/pysyncthru-0.8.0

python311Packages.pysyncthru: 0.7.10 -> 0.8.0
This commit is contained in:
Robert Schütz 2023-12-02 09:30:14 -08:00 committed by GitHub
commit 22bba75f12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,33 +1,40 @@
{ lib
, isPy27
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, setuptools
, aiohttp
, demjson3
, python
, unittestCheckHook
}:
buildPythonPackage rec {
pname = "pysyncthru";
version = "0.7.10";
version = "0.8.0";
disabled = isPy27;
disabled = pythonOlder "3.7";
pyproject = true;
src = fetchFromGitHub {
owner = "nielstron";
repo = "pysyncthru";
rev = "release-${version}";
sha256 = "1c29w2ldrnq0vxr9cfa2pjhwdvrpw393c84khgg2y56jrkbidq53";
rev = "refs/tags/${version}";
hash = "sha256-Zije1WzfgIU9pT0H7T/Mx+5gEBCsRgMLkfsa/KB0YtI=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
aiohttp
demjson3
];
checkPhase = ''
${python.interpreter} -m unittest
'';
nativeCheckInputs = [
unittestCheckHook
];
pythonImportsCheck = [ "pysyncthru" ];