pythonPackages.watchdog: refactor move to python-modules
This commit is contained in:
parent
65d71d574f
commit
b37a318d41
32
pkgs/development/python-modules/watchdog/default.nix
Normal file
32
pkgs/development/python-modules/watchdog/default.nix
Normal file
@ -0,0 +1,32 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, argh
|
||||
, pathtools
|
||||
, pyyaml
|
||||
, pkgs
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "watchdog";
|
||||
version = "0.8.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0qj1vqszxwfx6d1s66s96jmfmy2j94bywxiqdydh6ikpvcm8hrby";
|
||||
};
|
||||
|
||||
buildInputs = stdenv.lib.optionals stdenv.isDarwin
|
||||
[ pkgs.darwin.apple_sdk.frameworks.CoreServices pkgs.darwin.cf-private ];
|
||||
propagatedBuildInputs = [ argh pathtools pyyaml ];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Python API and shell utilities to monitor file system events";
|
||||
homepage = https://github.com/gorakhargosh/watchdog;
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ goibhniu ];
|
||||
};
|
||||
|
||||
}
|
@ -2193,29 +2193,7 @@ in {
|
||||
|
||||
setuptools-git = callPackage ../development/python-modules/setuptools-git { };
|
||||
|
||||
watchdog = buildPythonPackage rec {
|
||||
name = "watchdog-${version}";
|
||||
version = "0.8.3";
|
||||
|
||||
propagatedBuildInputs = with self; [ argh pathtools pyyaml ];
|
||||
|
||||
buildInputs = stdenv.lib.optionals stdenv.isDarwin
|
||||
[ pkgs.darwin.apple_sdk.frameworks.CoreServices pkgs.darwin.cf-private ];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/w/watchdog/${name}.tar.gz";
|
||||
sha256 = "0qj1vqszxwfx6d1s66s96jmfmy2j94bywxiqdydh6ikpvcm8hrby";
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Python API and shell utilities to monitor file system events";
|
||||
homepage = https://github.com/gorakhargosh/watchdog;
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ goibhniu ];
|
||||
};
|
||||
};
|
||||
watchdog = callPackage ../development/python-modules/watchdog { };
|
||||
|
||||
pywatchman = callPackage ../development/python-modules/pywatchman { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user