diff options
author | Kajetan Champlewski <kajetan@kch.dev> | 2020-01-08 19:52:20 +0000 |
---|---|---|
committer | Jon <jonringer@users.noreply.github.com> | 2020-01-08 18:10:50 -0800 |
commit | d84fb6400cc6cfc3b969a1f5715b2de123b3072a (patch) | |
tree | 4de8838d1b3a18d8381830dd7f98496b33193ca7 /pkgs/development/python-modules | |
parent | 4f4e036675ceaee240ad1ac5ea9088def9a67d54 (diff) | |
download | nixpkgs-d84fb6400cc6cfc3b969a1f5715b2de123b3072a.tar nixpkgs-d84fb6400cc6cfc3b969a1f5715b2de123b3072a.tar.gz nixpkgs-d84fb6400cc6cfc3b969a1f5715b2de123b3072a.tar.bz2 nixpkgs-d84fb6400cc6cfc3b969a1f5715b2de123b3072a.tar.lz nixpkgs-d84fb6400cc6cfc3b969a1f5715b2de123b3072a.tar.xz nixpkgs-d84fb6400cc6cfc3b969a1f5715b2de123b3072a.tar.zst nixpkgs-d84fb6400cc6cfc3b969a1f5715b2de123b3072a.zip |
python3Packages.coordinates: init at 0.4.0
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r-- | pkgs/development/python-modules/coordinates/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/coordinates/default.nix b/pkgs/development/python-modules/coordinates/default.nix new file mode 100644 index 00000000000..8c08021a823 --- /dev/null +++ b/pkgs/development/python-modules/coordinates/default.nix @@ -0,0 +1,32 @@ +{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder +, pytest +}: + +buildPythonPackage rec { + pname = "coordinates"; + version = "0.4.0"; + + disabled = pythonOlder "3.5"; + + src = fetchFromGitHub { + owner = "clbarnes"; + repo = "coordinates"; + rev = "v${version}"; + sha256 = "1zha594rshjg3qjq9mrai2hfldya282ihasp2i3km7b2j4gjdw2b"; + }; + + checkInputs = [ pytest ]; + + checkPhase = '' + runHook preCheck + pytest tests/ + runHook postCheck + ''; + + meta = with lib; { + description = "Convenience class for doing maths with explicit coordinates"; + homepage = https://github.com/clbarnes/coordinates; + license = licenses.mit; + maintainers = [ maintainers.mildlyincompetent ]; + }; +} |