-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Testing it all still works with unlocked depends, adding a nix definition for reproducibility, adding python >3.8 compatibility.
- Loading branch information
Showing
4 changed files
with
89 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
{ lib | ||
, python3 | ||
, fetchPypi | ||
, fetchFromGitHub | ||
}: | ||
let | ||
atomicwrites = python3.pkgs.buildPythonPackage rec { | ||
pname = "atomicwrites"; | ||
version = "1.4.0"; | ||
pyproject = true; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
hash = "sha256-rnA5atGkNPnHBG/S3RlvwEsS+ekf+4WRZBk76LYWino="; | ||
}; | ||
|
||
nativeBuildInputs = [ | ||
python3.pkgs.setuptools | ||
python3.pkgs.wheel | ||
]; | ||
|
||
pythonImportsCheck = [ "atomicwrites" ]; | ||
|
||
meta = with lib; { | ||
description = "Atomic file writes"; | ||
homepage = "https://pypi.org/project/atomicwrites/"; | ||
license = licenses.mit; | ||
maintainers = with maintainers; [ ]; | ||
mainProgram = "atomicwrites"; | ||
}; | ||
}; | ||
in | ||
python3.pkgs.buildPythonPackage rec { | ||
pname = "zinc"; | ||
version = "unstable-2024-04-09"; | ||
pyproject = true; | ||
|
||
src = ./.; | ||
################################################################### | ||
# src = fetchFromGitHub { # | ||
# owner = "mindsnacks"; # | ||
# repo = "Zinc"; # | ||
# rev = "8efa92e4d9da30b5eb5c379abf64090f6833aec5"; # | ||
# hash = "sha256-zjkv7SuulaQVWl2N1O/32An3nDMChR3JC+OYfYM58ZA="; # | ||
# }; # | ||
################################################################### | ||
|
||
nativeBuildInputs = [ | ||
python3.pkgs.setuptools | ||
python3.pkgs.wheel | ||
]; | ||
|
||
propagatedBuildInputs = with python3.pkgs; [ | ||
setuptools | ||
atomicwrites | ||
boto3 | ||
jsonschema | ||
lockfile | ||
redis | ||
requests | ||
toml | ||
]; | ||
|
||
pythonImportsCheck = [ "zinc" ]; | ||
|
||
meta = with lib; { | ||
description = "Asset distribution system for mobile clients"; | ||
homepage = "https://github.com/mindsnacks/Zinc"; | ||
license = licenses.mit; | ||
maintainers = with maintainers; [ ]; | ||
mainProgram = "zinc"; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
lockfile==0.9.1 | ||
boto3==1.26.160 | ||
lockfile | ||
boto3 | ||
toml | ||
requests | ||
jsonschema==1.3.0 | ||
atomicwrites==1.3.0 | ||
redis==4.4.4 | ||
jsonschema | ||
atomicwrites | ||
redis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters