2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
cloudpathlib,
|
|
|
|
confection,
|
|
|
|
fetchFromGitHub,
|
|
|
|
packaging,
|
|
|
|
pydantic,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
pythonRelaxDepsHook,
|
|
|
|
requests,
|
|
|
|
setuptools,
|
|
|
|
smart-open,
|
|
|
|
srsly,
|
|
|
|
typer,
|
|
|
|
wasabi,
|
2023-11-16 04:20:00 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "weasel";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.3.4";
|
2023-11-16 04:20:00 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "explosion";
|
|
|
|
repo = "weasel";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-6Ck8R10/YW2Nc6acNk2bzgyqSg+OPqwyJjhUgXP/umw=";
|
2023-11-16 04:20:00 +00:00
|
|
|
};
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"cloudpathlib"
|
2024-04-21 15:54:59 +00:00
|
|
|
"smart-open"
|
2024-05-15 15:35:15 +00:00
|
|
|
"typer"
|
2024-01-25 14:12:00 +00:00
|
|
|
];
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeBuildInputs = [
|
2024-01-25 14:12:00 +00:00
|
|
|
pythonRelaxDepsHook
|
2023-11-16 04:20:00 +00:00
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cloudpathlib
|
|
|
|
confection
|
|
|
|
packaging
|
|
|
|
pydantic
|
|
|
|
requests
|
|
|
|
smart-open
|
|
|
|
srsly
|
|
|
|
typer
|
|
|
|
wasabi
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "weasel" ];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# This test requires internet access
|
|
|
|
"test_project_assets"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-01-25 14:12:00 +00:00
|
|
|
description = "A small and easy workflow system";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "weasel";
|
2023-11-16 04:20:00 +00:00
|
|
|
homepage = "https://github.com/explosion/weasel/";
|
2024-01-25 14:12:00 +00:00
|
|
|
changelog = "https://github.com/explosion/weasel/releases/tag/v${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ GaetanLepage ];
|
|
|
|
};
|
|
|
|
}
|