2021-01-25 08:26:54 +00:00
|
|
|
{ lib, fetchPypi, buildPythonPackage, fetchpatch
|
2018-03-09 09:21:03 +00:00
|
|
|
, libraw
|
|
|
|
, pytest, mock }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "rawkit";
|
|
|
|
version = "0.6.0";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "0vrhrpr70i61y5q5ysk341x1539ff1q1k82g59zq69lv16s0f76s";
|
|
|
|
};
|
|
|
|
|
2019-03-04 14:26:43 +00:00
|
|
|
patches = [
|
|
|
|
# Python 3.7 compatibility
|
|
|
|
(fetchpatch {
|
2020-04-01 01:11:51 +00:00
|
|
|
url = "https://github.com/photoshell/rawkit/commit/663e90afa835d398aedd782c87b8cd0bff64bc9f.patch";
|
2019-03-04 14:26:43 +00:00
|
|
|
sha256 = "1cdw0x9bgk0b5jnpjnmd8jpbaryarr3cjqizq44366qh3l0jycxy";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2018-03-09 09:21:03 +00:00
|
|
|
buildInputs = [ libraw ];
|
|
|
|
|
|
|
|
checkInputs = [ pytest mock ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test tests
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-03-09 09:21:03 +00:00
|
|
|
description = "CTypes based LibRaw bindings for Python";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://rawkit.readthedocs.org/";
|
2018-03-09 09:21:03 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jfrankenau ];
|
|
|
|
};
|
|
|
|
}
|