Commit 61913091 authored by Fabian Affolter's avatar Fabian Affolter
Browse files
parent 2f29aa5f
Loading
Loading
Loading
Loading
+5 −11
Original line number Diff line number Diff line
{ lib
, aiomisc
, aiomisc-pytest
, caio
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, pytestCheckHook
, pythonOlder
}:

buildPythonPackage rec {
  pname = "aiofile";
  version = "3.8.0";
  version = "3.8.5";
  format = "setuptools";

  disabled = pythonOlder "3.7";
@@ -19,23 +19,16 @@ buildPythonPackage rec {
    owner = "mosquito";
    repo = pname;
    rev = "refs/tags/${version}";
    hash = "sha256-PIImQZ1ymazsOg8qmlO91tNYHwXqK/d8AuKPsWYvh0w=";
    hash = "sha256-jQ97jtYhkqQgQjtHhtlk5JlvkzbFQw3kY6uXuV81ZkQ=";
  };

  patches = [
    (fetchpatch {
      name = "remove-asynctest.patch";
      url = "https://github.com/mosquito/aiofile/commit/9253ca42022f17f630ccfb6811f67876910f8b13.patch";
      hash = "sha256-yMRfqEbdxApFypEj27v1zTgF/4kuLf5aS/+clo3mfZo=";
    })
  ];

  propagatedBuildInputs = [
    caio
  ];

  nativeCheckInputs = [
    aiomisc
    aiomisc-pytest
    pytestCheckHook
  ];

@@ -63,6 +56,7 @@ buildPythonPackage rec {
  meta = with lib; {
    description = "File operations with asyncio support";
    homepage = "https://github.com/mosquito/aiofile";
    changelog = "https://github.com/aiokitchen/aiomisc/blob/master/CHANGELOG.md";
    license = licenses.asl20;
    maintainers = with maintainers; [ fab ];
  };