mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-17 10:40:33 +03:00
python3Packages.dm-tree: init at 0.1.6
This commit is contained in:
parent
7aa8593369
commit
c473cc8714
47
pkgs/development/python-modules/dm-tree/default.nix
Normal file
47
pkgs/development/python-modules/dm-tree/default.nix
Normal file
@ -0,0 +1,47 @@
|
||||
{ autoPatchelfHook
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy39
|
||||
, lib
|
||||
, six
|
||||
, stdenv
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "dm-tree";
|
||||
version = "0.1.6";
|
||||
format = "wheel";
|
||||
|
||||
# At the time of writing (8/19/21), there are releases for 3.6-3.9. Supporting
|
||||
# all of them is a pain, so we focus on 3.9, the current nixpkgs python3
|
||||
# version.
|
||||
disabled = !isPy39;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit version format;
|
||||
sha256 = "1f71dy5xa5ywa5chbdhpdf8k0w1v9cvpn3qyk8nnjm79j90la9c4";
|
||||
pname = "dm_tree";
|
||||
dist = "cp39";
|
||||
python = "cp39";
|
||||
abi = "cp39";
|
||||
platform = "manylinux_2_24_x86_64";
|
||||
};
|
||||
|
||||
# Prebuilt wheels are dynamically linked against things that nix can't find.
|
||||
# Run `autoPatchelfHook` to automagically fix them.
|
||||
nativeBuildInputs = [ autoPatchelfHook ];
|
||||
# Dynamic link dependencies
|
||||
buildInputs = [ stdenv.cc.cc ];
|
||||
|
||||
propagatedBuildInputs = [ six ];
|
||||
|
||||
pythonImportsCheck = [ "tree" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Tree is a library for working with nested data structures.";
|
||||
homepage = "https://github.com/deepmind/tree";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ samuela ];
|
||||
platforms = [ "x86_64-linux" ];
|
||||
};
|
||||
}
|
@ -2289,6 +2289,8 @@ in {
|
||||
|
||||
dm-sonnet = callPackage ../development/python-modules/dm-sonnet { };
|
||||
|
||||
dm-tree = callPackage ../development/python-modules/dm-tree { };
|
||||
|
||||
dnachisel = callPackage ../development/python-modules/dnachisel { };
|
||||
|
||||
dnslib = callPackage ../development/python-modules/dnslib { };
|
||||
|
Loading…
Reference in New Issue
Block a user