forked from mirrors/nixpkgs
pythonPackages.dlib: move expression
Initially the expression was quite small (just inherited properties from `pkgs.dlib`), but the more it grows the better it is to store it into its own file.
This commit is contained in:
parent
ac499a345a
commit
b7bc6e7f6c
13
pkgs/development/python-modules/dlib/default.nix
Normal file
13
pkgs/development/python-modules/dlib/default.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{ buildPythonPackage, dlib, python, pytest }:
|
||||
|
||||
buildPythonPackage {
|
||||
inherit (dlib) name src nativeBuildInputs buildInputs meta;
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} nix_run_setup test --no USE_AVX_INSTRUCTIONS
|
||||
'';
|
||||
|
||||
patches = [ ./build-cores.patch ];
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
}
|
|
@ -961,16 +961,8 @@ in {
|
|||
|
||||
cypari2 = callPackage ../development/python-modules/cypari2 { };
|
||||
|
||||
dlib = buildPythonPackage rec {
|
||||
inherit (pkgs.dlib) name src nativeBuildInputs meta buildInputs;
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} nix_run_setup test --no USE_AVX_INSTRUCTIONS
|
||||
'';
|
||||
|
||||
patches = [ ../development/python-modules/dlib/build-cores.patch ];
|
||||
|
||||
checkInputs = with self; [ pytest ];
|
||||
dlib = callPackage ../development/python-modules/dlib {
|
||||
inherit (pkgs) dlib;
|
||||
};
|
||||
|
||||
datadog = callPackage ../development/python-modules/datadog {};
|
||||
|
|
Loading…
Reference in a new issue