started flake

This commit is contained in:
didier committed 2024-10-12 12:18:14 -04:00
commit 1eb6fa36a3
3 files changed
+117

No files matched your search

+55
View File
@@ -0,0 +1,55 @@
{
description = "Pre-built CPU-only OpenCV packages for Python. ";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
pythonPackages = pkgs.python312Packages;
python-path = pkgs.python3Packages.buildPythonPackage rec {
pname = "path";
version = "16.14.0";
pyproject = true;
# disabled = pythonOlder "3.7";
src = pkgs.python3Packages.fetchPypi {
inherit pname version;
hash = "sha256-26qn79RgL9a6jYKJDceCPWnl3nQKboQtmRmw+q8rao4=";
};
nativeBuildInputs =
[ pythonPackages.setuptools pythonPackages.setuptools-scm ];
nativeCheckInputs =
[ pythonPackages.more-itertools pythonPackages.pytestCheckHook ];
disabledTests = [
# creates a file, checks when it was last accessed/modified
# AssertionError: assert 1650036414.0 == 1650036414.960688
"test_utime"
];
pythonImportsCheck = [ "path" ];
meta = with pkgs.lib; {
description = "Object-oriented file system path manipulation";
homepage = "https://github.com/jaraco/path";
changelog =
"https://github.com/jaraco/path/blob/v${version}/NEWS.rst";
license = pkgs.lib.licenses.mit;
maintainers = with maintainers; [ ];
};
};
in {
packages = {
default = pkgs.python312Packages.path;
python-path = python-path;
};
});
}