mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-01 02:23:54 +00:00
5356420466
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \ -e 's!with lib.maintainers; \[ *\];![ ];!' \ -e 's!with maintainers; \[ *\];![ ];!'
37 lines
746 B
Nix
37 lines
746 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
poetry-core,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "xmod";
|
|
version = "1.8.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rec";
|
|
repo = "xmod";
|
|
rev = "v${version}";
|
|
hash = "sha256-pfFxtDQ4kaBrx4XzYMQO1vE4dUr2zs8jgGUQUdXB798=";
|
|
};
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
disabledTests = [ "test_partial_function" ];
|
|
|
|
pythonImportsCheck = [ "xmod" ];
|
|
|
|
meta = with lib; {
|
|
description = "Turn any object into a module";
|
|
homepage = "https://github.com/rec/xmod";
|
|
changelog = "https://github.com/rec/xmod/blob/${src.rev}/CHANGELOG";
|
|
license = licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|