diff options
| author | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2018-02-10 08:32:52 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-02-10 08:32:52 +0000 |
| commit | d8d8a0a00fb3e8b2d6ea882fea88c13dce6b084c (patch) | |
| tree | ee161a2271d2c9337689bec737adee2e06363282 /pkgs/development/python-modules/python-magic | |
| parent | 80b096b2b3581ba3ec2eeb9c980524808dff52ff (diff) | |
| parent | dd4144ed62eb7a92059ccfba5c75bef78fe50a2e (diff) | |
Merge pull request #34761 from nico202/papis
papis: init at 0.5.2 + dependencies
Diffstat (limited to 'pkgs/development/python-modules/python-magic')
| -rw-r--r-- | pkgs/development/python-modules/python-magic/default.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/python-magic/default.nix b/pkgs/development/python-modules/python-magic/default.nix new file mode 100644 index 000000000000..56be2e3448ae --- /dev/null +++ b/pkgs/development/python-modules/python-magic/default.nix @@ -0,0 +1,28 @@ +{ buildPythonPackage, lib, fetchPypi, file, stdenv }: + +buildPythonPackage rec { + pname = "python-magic"; + version = "0.4.13"; + + src = fetchPypi { + inherit pname version; + sha256 = "128j9y30zih6cyjyjnxhghnvpjm8vw40a1q7pgmrp035yvkaqkk0"; + }; + + postPatch = '' + substituteInPlace magic.py --replace "ctypes.util.find_library('magic')" "'${file}/lib/libmagic${stdenv.hostPlatform.extensions.sharedLibrary}'" + ''; + + doCheck = false; + + # TODO: tests are failing + #checkPhase = '' + # ${python}/bin/${python.executable} ./test.py + #''; + + meta = { + description = "A python interface to the libmagic file type identification library"; + homepage = https://github.com/ahupp/python-magic; + license = lib.licenses.mit; + }; +} |
