Skip to content

Commit

Permalink
Merge pull request #331174 from greg-hellings/init-lox
Browse files Browse the repository at this point in the history
python312Packages.lox: init at 0.12.0
  • Loading branch information
natsukium committed Aug 11, 2024
2 parents 7e1b0a8 + 73ed2b1 commit 310fcfd
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
61 changes: 61 additions & 0 deletions pkgs/development/python-modules/lox/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
buildPythonPackage,
fetchFromGitHub,
lib,

pathos,
pytestCheckHook,
pytest-mock,
setuptools,
tqdm,
}:

buildPythonPackage rec {
pname = "lox";
version = "0.12.0";
pyproject = true;

src = fetchFromGitHub {
owner = "BrianPugh";
repo = "lox";
rev = "refs/tags/v${version}";
hash = "sha256-Iv3ZdfsvFLU6lhlH1n+eQ+KIrXESsnC1S2lVFnKFV08=";
};

build-system = [ setuptools ];

dependencies = [ pathos ];

pythonRemoveDeps = [ "sphinx-rtd-theme" ];

# setup.py requires pytest-runner for setuptools, which is wrong
postPatch = ''
substituteInPlace setup.py --replace-fail '"pytest-runner",' ""
'';

pythonImportsCheck = [ "lox" ];

disabledTests = [
# Benchmark, performance testing
"test_perf_lock"
"test_perf_qlock"

# time sensitive testing
"test_bathroom_example"
"test_RWLock_r"
];

nativeCheckInputs = [
pytestCheckHook
pytest-mock
tqdm
];

meta = {
description = "Threading and Multiprocessing made easy";
changelog = "https://github.com/BrianPugh/lox/releases/tag/v${version}";
homepage = "https://github.com/BrianPugh/lox";
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.greg ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7287,6 +7287,8 @@ self: super: with self; {

lottie = callPackage ../development/python-modules/lottie { };

lox = callPackage ../development/python-modules/lox { };

lpc-checksum = callPackage ../development/python-modules/lpc-checksum { };

lrcalc-python = callPackage ../development/python-modules/lrcalc-python { };
Expand Down

0 comments on commit 310fcfd

Please sign in to comment.