mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-27 21:19:35 +00:00
python311Packages.vg: init at 2.0.0
This commit is contained in:
parent
14821ae8a8
commit
9da9228f98
53
pkgs/development/python-modules/vg/default.nix
Normal file
53
pkgs/development/python-modules/vg/default.nix
Normal file
@ -0,0 +1,53 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, numpy
|
||||
, poetry-core
|
||||
, pythonOlder
|
||||
, pytestCheckHook
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "vg";
|
||||
version = "2.0.0";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "lace";
|
||||
repo = "vg";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-ZNUAfkhjmsxD8cH0fR8Htjs+/F/3R9xfe1XgRyndids=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace 'requires = ["setuptools", "poetry-core>=1.0.0"]' 'requires = ["poetry-core>=1.0.0"]'
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
numpy
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"vg"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Linear algebra for humans: a very good vector-geometry and linear-algebra toolbelt";
|
||||
homepage = "https://github.com/lace/vg";
|
||||
changelog = "https://github.com/lace/vg/blob/${version}/CHANGELOG.md";
|
||||
license = with licenses; [ bsd2 ];
|
||||
maintainers = with maintainers; [ clerie ];
|
||||
};
|
||||
}
|
@ -13586,6 +13586,8 @@ self: super: with self; {
|
||||
|
||||
veryprettytable = callPackage ../development/python-modules/veryprettytable { };
|
||||
|
||||
vg = callPackage ../development/python-modules/vg { };
|
||||
|
||||
videocr = callPackage ../development/python-modules/videocr { };
|
||||
|
||||
vidstab = callPackage ../development/python-modules/vidstab { };
|
||||
|
Loading…
Reference in New Issue
Block a user