vimPlugins: disallow packaging plugins that are already in luaPackages (#376370)
[NixPkgs.git] / pkgs / development / python-modules / pyquaternion / default.nix
blobfab1e6c4f8cc652c54e13623a050abf5a4e9baff
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   numpy,
6   setuptools,
7   pytestCheckHook,
8 }:
10 buildPythonPackage rec {
11   pname = "pyquaternion";
12   version = "0.9.9";
13   pyproject = true;
15   src = fetchFromGitHub {
16     owner = "KieranWynn";
17     repo = "pyquaternion";
18     rev = "v${version}";
19     hash = "sha256-L0wT9DFUDRcmmN7OpmIDNvtQWQrM7iFnZt6R2xrJ+3A=";
20   };
22   # The VERSION.txt file is required for setup.py
23   # See: https://github.com/KieranWynn/pyquaternion/blob/master/setup.py#L14-L15
24   postPatch = ''
25     echo "${version}" > VERSION.txt
26   '';
28   build-system = [ setuptools ];
30   dependencies = [ numpy ];
32   nativeCheckInputs = [ pytestCheckHook ];
34   pytestFlagsArray = [ "pyquaternion/test/" ];
36   pythonImportsCheck = [ "pyquaternion" ];
38   meta = with lib; {
39     description = "Library for representing and using quaternions";
40     homepage = "http://kieranwynn.github.io/pyquaternion/";
41     license = licenses.mit;
42     maintainers = with maintainers; [ lucasew ];
43   };