Skip to content

Commit

Permalink
Add nix files & relax rpyc dep versions
Browse files Browse the repository at this point in the history
  • Loading branch information
doronbehar committed Aug 20, 2023
1 parent b883735 commit 2e34562
Show file tree
Hide file tree
Showing 14 changed files with 812 additions and 1 deletion.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,5 @@ share/python-wheels/
.installed.cfg
*.egg
MANIFEST
# Nix build symlinks
result*
33 changes: 33 additions & 0 deletions aiopath/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{ lib
, src
, version
, buildPythonPackage
, anyio
, aiofile
}:

buildPythonPackage {
pname = "aiopath";
inherit version;

inherit src;

propagatedBuildInputs = [
anyio
aiofile
];
# Tests require a module that is deprecated, and is not packaged in Nixpkgs,
# named: asynctempfile. URL: https://github.com/alemigo/asynctempfile .
# Ideally upstream would adopt less obscure dependencies.
doCheck = false;

pythonImportsCheck = [
"aiopath"
];

meta = with lib; {
description = "A complete implementation of Python's pathlib that's compatible with asyncio, trio, and the async/await syntax";
homepage = "https://github.com/alexdelorenzo/aiopath";
license = licenses.lgpl3Plus;
};
}
39 changes: 39 additions & 0 deletions app-paths/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{ lib
, src
, version
, buildPythonPackage
, setuptools
, unpackable
, asyncstdlib
, appdirs
, aiopath
, strenum
}:

buildPythonPackage {
pname = "app-paths";
inherit version;

inherit src;

pythonImportsCheck = [
"app_paths"
];

#nativeBuildInputs = [
# setuptools
#];
propagatedBuildInputs = [
unpackable
asyncstdlib
appdirs
aiopath
strenum
];

meta = with lib; {
description = "Like appdirs, but with pathlib, path creation and async support";
homepage = "https://github.com/alexdelorenzo/app_paths";
license = licenses.lgpl3Plus;
};
}
167 changes: 167 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2e34562

Please sign in to comment.