summary refs log tree commit diff
path: root/pkgs/development/python-modules/dlib
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2018-10-29 18:57:19 +0100
committerMaximilian Bosch <maximilian@mbosch.me>2018-10-29 18:57:19 +0100
commitb7bc6e7f6ca33775643553fe046e804425c8ce5d (patch)
tree491254da5ca64a2fa6f9c7a4026c3b24480f2801 /pkgs/development/python-modules/dlib
parentac499a345ae698d07bf240ca13bb37b4b4501c4d (diff)
downloadnixpkgs-b7bc6e7f6ca33775643553fe046e804425c8ce5d.tar
nixpkgs-b7bc6e7f6ca33775643553fe046e804425c8ce5d.tar.gz
nixpkgs-b7bc6e7f6ca33775643553fe046e804425c8ce5d.tar.bz2
nixpkgs-b7bc6e7f6ca33775643553fe046e804425c8ce5d.tar.lz
nixpkgs-b7bc6e7f6ca33775643553fe046e804425c8ce5d.tar.xz
nixpkgs-b7bc6e7f6ca33775643553fe046e804425c8ce5d.tar.zst
nixpkgs-b7bc6e7f6ca33775643553fe046e804425c8ce5d.zip
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.
Diffstat (limited to 'pkgs/development/python-modules/dlib')
-rw-r--r--pkgs/development/python-modules/dlib/default.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/dlib/default.nix b/pkgs/development/python-modules/dlib/default.nix
new file mode 100644
index 00000000000..90e2c526789
--- /dev/null
+++ b/pkgs/development/python-modules/dlib/default.nix
@@ -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 ];
+}