This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
39 lines
834 B
Nix
39 lines
834 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pysyncobj";
|
|
version = "0.3.14";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bakwc";
|
|
repo = "PySyncObj";
|
|
tag = "v${version}";
|
|
hash = "sha256-a1fECsLIEFu9Wwai0viR/lkqWVWBKs+OdxHey3Pltmo=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
# Tests require network features
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "pysyncobj" ];
|
|
|
|
meta = {
|
|
description = "Python library for replicating your class";
|
|
homepage = "https://github.com/bakwc/PySyncObj";
|
|
changelog = "https://github.com/bakwc/PySyncObj/releases/tag/v${version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
mainProgram = "syncobj_admin";
|
|
};
|
|
}
|