Commit 3048009d authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files
parent 8fece432
Loading
Loading
Loading
Loading
+21 −14
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,

  # build-system
  setuptools,

  # dependencies
  cloudpathlib,
  confection,
  fetchFromGitHub,
  packaging,
  pydantic,
  pytestCheckHook,
  pythonOlder,
  requests,
  setuptools,
  smart-open,
  srsly,
  typer,
  wasabi,

  # tests
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "weasel";
  version = "0.3.4";
  version = "0.4.1";
  pyproject = true;

  disabled = pythonOlder "3.6";

  src = fetchFromGitHub {
    owner = "explosion";
    repo = "weasel";
    rev = "refs/tags/v${version}";
    hash = "sha256-6Ck8R10/YW2Nc6acNk2bzgyqSg+OPqwyJjhUgXP/umw=";
    hash = "sha256-gXPHEoEY0qKcpAtqHlUw5c43/6hKseCx+vBNzEXFF2A=";
  };

  pythonRelaxDeps = [
@@ -36,11 +39,11 @@ buildPythonPackage rec {
    "typer"
  ];

  nativeBuildInputs = [
  build-system = [
    setuptools
  ];

  propagatedBuildInputs = [
  dependencies = [
    cloudpathlib
    confection
    packaging
@@ -54,19 +57,23 @@ buildPythonPackage rec {

  pythonImportsCheck = [ "weasel" ];

  nativeCheckInputs = [ pytestCheckHook ];
  nativeCheckInputs = [
    pytestCheckHook
  ];

  disabledTests = [
    # This test requires internet access
    "test_project_assets"
    "test_project_git_dir_asset"
    "test_project_git_file_asset"
  ];

  meta = with lib; {
  meta = {
    description = "Small and easy workflow system";
    mainProgram = "weasel";
    homepage = "https://github.com/explosion/weasel/";
    changelog = "https://github.com/explosion/weasel/releases/tag/v${version}";
    license = licenses.mit;
    maintainers = with maintainers; [ GaetanLepage ];
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ GaetanLepage ];
  };
}